test.xml

  Download

More scripts: Dialog

Syntax Highlighing:

comments, key words, predefined symbols, class members & methods, functions & classes
            
<?xml version="1.0"?>
<root>
	<dialog id="test" title="This is a test" Orientation="vertical" OnOK="GetDlgValues()">
		<book>
			<page Name="Page1">
				<label>This is some text in a label</label>
				<pushbutton Name="Ignore This" OnPressed="TestFunc2();"/>
				<combobox id="combo">
					<item Value="item1">If it's not one thing</item>
					<item Value="item2">it's another</item>
				</combobox>
				<pane Orientation="horizontal">
					<pushbutton Name="Test" Icon="CHECKBOX_BLACK" ToolTip="Check This!"/>
					<togglebutton id="tbutton" Name="This is a togglebutton"/>
				</pane>
			</page>
			<page Name="Edit">
				<pane Orientation="horizontal">
					<label WidthGroup="1">First Name:</label>
					<edittext id="fname" width="20"/>
				</pane>
				<pane Orientation="horizontal">
					<label WidthGroup="1">Last Name:</label>
					<edittext id="lname" width="20"/>
				</pane>
				<pane Orientation="horizontal">
					<label WidthGroup="1">Password:</label>
					<edittext id="password" Opaque="true" width="20"/>
				</pane>
			</page>
			<page Name="Radiogroup">
				<groupbox Name="This is a groupbox">
					<radiogroup id="radiogroup">
						<item Value="button1" Name="If it's not one thing"/>
						<item Value="button2" Name="it's another"/>
					</radiogroup>
				</groupbox>
			</page>
		</book>
	</dialog>
	<script language="SML">
		<![CDATA[
			func TestFunc2() {
				PopupMessage("I said to ignore this!");
				return (0);
			}
		]]>
	</script>
</root>