blob: 44c20ef67c9392e34126c83594da2e4df2e521eb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
<?php
class ActiveImageButtonTest extends TPage
{
function change_text($sender, $param)
{
$this->image1->AlternateText = "Muahahahah";
}
function change_image($sender, $param)
{
$this->image1->ImageUrl = $sender->CustomData;
}
function change_align($sender, $param)
{
$this->image1->ImageAlign="absbottom";
}
function change_description($sender, $param)
{
$this->image1->DescriptionUrl = "maahahhaa";
}
function image1_clicked($sender, $param)
{
$this->label1->Text = "Image clicked at x={$param->x}, y={$param->y}";
}
}
?>
|