{ [ Edit this file and then press "Reload" on the dialog to see the results The functions you can call are: Run(command) - runs another program User(text) - shows a message box Reload - reloads the dialog Close - closes the dialog SetFocus(id) - sets focus to the control with the given id GetText(id) - retrieves the text from a control You can also define your own methods inside this file that you can call Please see http://www.larts.co.uk/Software/Simkin.html for more details ] View { Title [Simkin Demo] X [120] Y [100] Width [250] Height [190] Controls { { Type [Static] Text [This window and its behaviour are defined in Demo.s] X [10] Y [10] Width [240] Height [40] } { Type [Static] Text [Prompt:] X [10] Y [60] Width [60] Height [20] } { Type [Edit] X [80] Y [60] Width [100] Height [20] Id [1] } { Type [Button] Text [OK] Id [2] X [10] Y [100] Width [60] Height [20] Method [OkPressed] } { Type [Button] Text [Cancel] Id [3] X [80] Y [100] Width [60] Height [20] Method [CancelPressed] } { Type [Button] Text [Reload] Id [4] X [10] Y [130] Width [60] Height [20] Method [Reload] } { Type [Button] Text [Edit Demo.s] Id [5] X [80] Y [130] Width [90] Height [20] Method [Edit] } } } Init [ () { SetFocus(1); }] OkPressed [ () { User("You typed " & GetText(1)); Close(); }] CancelPressed [ () { User("You cancelled the dialog!"); Close(); }] Edit [ () { Run("notepad demo.s"); }] }