summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/active-controls/protected/pages/ActiveImageButtonTest.php
blob: eced24572e65bc1fce0ad683b7d47cb98834bccc (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}";
	}
}

?>