More scripts: Dialog
Syntax Highlighing:
comments, key words, predefined symbols, class members & methods, functions & classes
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE root SYSTEM "smlforms.dtd">
<root>
<dialog id="areacalc" Title="Area Unit Conversion" OnOK="return Recalculate()">
<groupbox ExtraBorder="2" Orientation="horizontal">
<label>Enter area value:</label>
<editnumber id="inArea" BlankZero="false" Format="Decimal" MinVal="0"
Precision="2" ReadOnly="false" Width="15" OnChanged="OnNewValue()"/>
<combobox id="inUnits" Default="square meters" OnSelection="OnInputUnitChange()">
<item Value="square meters">square meters</item>
<item Value="square kilometers">square kilometers</item>
<item Value="square feet">square feet</item>
<item Value="square yards">square yards</item>
<item Value="square miles">square miles</item>
<item Value="acres">acres</item>
<item Value="hectares">hectares</item>
</combobox>
</groupbox>
<pane Orientation="horizontal">
<label>Select output units:</label>
<combobox id="outUnits" Default="square meters" OnSelection="OnOutputUnitChange()">
<item Value="square meters">square meters</item>
<item Value="square kilometers">square kilometers</item>
<item Value="square feet">square feet</item>
<item Value="square yards">square yards</item>
<item Value="square miles">square miles</item>
<item Value="acres">acres</item>
<item Value="hectares">hectares</item>
</combobox>
</pane>
<pane Orientation="horizontal">
<label>Area in selected units:</label>
<edittext id="outAreaStr" ReadOnly="true" Width="35"/>
</pane>
</dialog>
</root>