"Hello World" GUI Example

This is a very basic example of creating a DialogWindow and responding to either the Ok or Cancel button click.  To use, save as "HelloWorldGUI.FMScript" in your plugins directory.

#author    NBOS Software
#desc    General Tester Script
#plugin    Hello World!

set w = NewDialogWindow()
 w.Top = 10
 w.Left = 20
 w.Width = 300
 w.Height = 100
 w.Caption = "Hello World!"
 w.Centered = true
If w.ShowModal then
 MsgBox "Ok button pressed"
 MsgBox "Cancel pressed"
End if



Last edited by NBOS on 2007-09-16 03:19:58
Copyright © 2003-2007, NBOS Software. All rights reserved. 'Fractal Mapper', 'ScreenMonkey', 'Character Sketcher', 'Inspiration Pad',
'Fractal World Explorer', 'Goblin API', 'AstroSynthesis' are trademarks of NBOS Software. 'Dwarven Beserker' art by V. Shane.
Member contributed resources