summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/protected/pages/UI/TestTPanelDefaultButton.page
blob: 753550d836a48f48ef72e71480eb7086f49b766d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<com:TContent ID="Content">
<com:TForm>
    <com:TPanel DefaultButton="Button2" Width="400px">
    This is panel content with a <com:TLabel Text="label" Font.Italic="true" />
    and two buttons: <br/>
    <com:TCheckBox />
	<com:TButton ID="Button1" Text="button1" Click="buttonClicked" />
    <com:TButton ID="Button2" Text="button2" Click="buttonClicked" />
    <com:TLabel ID="Result" ForeColor="red" />
    <br/>
    When you change focus to the panel and hit 'enter' key, <tt>button2</tt>
    will be clicked because it is set as the default button of the panel.
    </com:TPanel>
	<com:TLinkButton Text="button 3" Click="buttonClicked" />
    <com:TJavascriptLogger />
</com:TForm>
</com:TContent>