diff options
Diffstat (limited to 'demos/controls/protected')
-rw-r--r-- | demos/controls/protected/pages/LoginPage.php | 5 | ||||
-rw-r--r-- | demos/controls/protected/pages/LoginPage.tpl | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/demos/controls/protected/pages/LoginPage.php b/demos/controls/protected/pages/LoginPage.php index 3b5cc3f9..f29ed540 100644 --- a/demos/controls/protected/pages/LoginPage.php +++ b/demos/controls/protected/pages/LoginPage.php @@ -10,6 +10,11 @@ class LoginPage extends TPage else
$this->error->Text='login failed';
}
+
+ public function defaultClicked($sender,$param)
+ {
+ $sender->Text="Clicked";
+ }
}
?>
\ No newline at end of file diff --git a/demos/controls/protected/pages/LoginPage.tpl b/demos/controls/protected/pages/LoginPage.tpl index db687e00..0030dfb2 100644 --- a/demos/controls/protected/pages/LoginPage.tpl +++ b/demos/controls/protected/pages/LoginPage.tpl @@ -2,13 +2,14 @@ <com:TContent id="body" >
<com:TForm>
<div>
-<com:TPanel GroupingText="Login" Width="270px" HorizontalAlign="center">
+<com:TPanel DefaultButton="defButton" GroupingText="Login" Width="270px" HorizontalAlign="center" ScrollBars="Both">
<com:TLabel Text="Username" AssociatedControlID="username"/>
<com:TTextBox ID="username" /><br/>
<com:TLabel Text="Password" AssociatedControlID="password"/>
<com:TTextBox ID="password" TextMode="Password" /><br/>
<com:TButton Text="Login" Click="login" />
<com:TLabel ID="error" />
+<com:TButton ID="defButton" Text="Default Button" Click="defaultClicked" />
</com:TPanel>
</div>
</com:TForm>
|