summaryrefslogtreecommitdiff
path: root/demos
diff options
context:
space:
mode:
Diffstat (limited to 'demos')
-rw-r--r--demos/controls/protected/pages/HomePage.php5
-rw-r--r--demos/controls/protected/pages/HomePage.tpl2
2 files changed, 6 insertions, 1 deletions
diff --git a/demos/controls/protected/pages/HomePage.php b/demos/controls/protected/pages/HomePage.php
index d7f7e1be..d599dd95 100644
--- a/demos/controls/protected/pages/HomePage.php
+++ b/demos/controls/protected/pages/HomePage.php
@@ -18,6 +18,11 @@ class HomePage extends TPage
$this->TextBox->focus();
}
+ public function clickImage($sender,$param)
+ {
+ $this->TextBox->Text="You Clicked (".$param->X.", ".$param->Y.")";
+ }
+
public function linkClicked($sender,$param)
{
$sender->Text="Hello World";
diff --git a/demos/controls/protected/pages/HomePage.tpl b/demos/controls/protected/pages/HomePage.tpl
index 9cb24d3f..d3cc53df 100644
--- a/demos/controls/protected/pages/HomePage.tpl
+++ b/demos/controls/protected/pages/HomePage.tpl
@@ -10,7 +10,7 @@
<com:System.Web.UI.WebControls.TButton text="Toggle Button" ForeColor="red" Font.size="18" Click="testClick" /> (requires membership)<br/>
<com:TCheckBox Text="Checkbox" ID="checkbox"/><br/>
<com:TImage ImageUrl=<%~/fungii_logo.gif %> />
-<com:TImageButton ImageUrl=<%~/fungii_logo.gif %> /><br/>
+<com:TImageButton ImageUrl=<%~/fungii_logo.gif %> Click="clickImage"/><br/>
<com:THyperLink Text="Visit a 'classless' page" NavigateUrl="?sp=page.plain" /> |
<com:THyperLink Text="Visit member only page" NavigateUrl="?sp=page.private.member" />
<com:TLinkButton Text="Click Me" Click="linkClicked" OnClientClick="javascript:alert('you hit me')"/>