summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/active-controls/protected/pages/EventTriggeredCallback.page
blob: 889636f3ad2b4fb31889f2a0cd04f2da0cbca6ae (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
<com:TForm ID="form1">

	<h1>Event Triggered Callback Test</h1>

	<com:TTextBox ID="text1" Text="Focus me" />

	<com:TPanel ID="panel1" style="padding: 2em; border:1px solid #ccc; background-color: #ffc;">
		Mouse over this panel
	</com:TPanel>

	<input id="button1" type="button" value="Click me" />

	<com:TEventTriggeredCallback
		ControlID="text1"
		EventName="focus"
		OnCallback="text1_focused" />

	<com:TEventTriggeredCallback
		ControlID="panel1"
		EventName="mouseover"
		OnCallback="panel1_onmouseover" />

	<com:TEventTriggeredCallback
		ControlID="button1"
		OnCallback="button1_clicked" />

	<div style="padding: 2em; border:1px solid #ccc; margin-top:2em">
		<com:TActiveLabel ID="label1" Text="Label 1" />
	</div>
	<com:TJavascriptLogger />
</com:TForm>