diff options
author | xue <> | 2005-12-06 22:53:07 +0000 |
---|---|---|
committer | xue <> | 2005-12-06 22:53:07 +0000 |
commit | ec46fdc945f591e910051aca0457097825afd34c (patch) | |
tree | b79765ec299229678242267a7bfdf7e3c3f31349 /demos/controls/protected | |
parent | 03142d666493516ca86dede5380344f8c05b7633 (diff) |
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>
|