blob: 6f3d9b9ea47d1edf82e55c642fbad0bdb83c978d (
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
|
<?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}";
}
}
|