GOTO WinMain

LABEL cmdAdd
TEXTFIELD_GETSTRING somewin handle=mytext,destvariable=somevar
LISTBOX_ADDSTRING somewin handle=mylist,text=somevar
GOTO WinReturn

LABEL cmdDone
TEXTFIELD_GETSTRING somewin handle=Buzzdir,destvariable=!home
TEXTFIELD_GETSTRING somewin handle=samped,destvariable=!waveditor
TEXTFIELD_GETSTRING somewin handle=temp,destvariable=!temp

endscript

LABEL cmdbbd
filebrowse Jeskola Buzz(buzz.exe)|buzz.exe
length len dialog
trim len
subtract 8 len
setstring buzzhome dialog
left buzzhome len
setstring !home buzzhome
TEXTFIELD_SETSTRING somewin handle=Buzzdir,text=!home

Goto WinReturn

LABEL cmdbsd
filebrowse Wave Editor (*.exe)|*.exe
setstring !waveeditor dialog
TEXTFIELD_SETSTRING somewin handle=temp,text=!temp
Goto WinReturn

LABEL WinMain

   WINDOW_CREATE somewin name=BuzzScript Config,width=380,height=155,state=normal,icon=someicon.ico
TEXTFIELD_CREATE somewin handle=Buzzdir,name=buzzdir,x=15,y=15,width=300,height=25
   BUTTON_CREATE somewin name=Browse,jump=cmdbbd,x=315,y=15,width=50,height=25
TEXTFIELD_CREATE somewin handle=samped,name=samped,x=15,y=40,width=300,height=25
   BUTTON_CREATE somewin name=Browse,jump=cmdbsd,x=315,y=40,width=50,height=25
TEXTFIELD_CREATE somewin handle=temp,name=temp,x=15,y=65,width=300,height=25
   BUTTON_CREATE somewin name=Done,jump=cmdDone,x=265,y=90,width=50,height=25

TEXTFIELD_SETSTRING somewin handle=Buzzdir,text=!home
TEXTFIELD_SETSTRING somewin handle=samped,text=!waveeditor
TEXTFIELD_SETSTRING somewin handle=temp,text=!temp



LABEL WinReturn
IDLE WINDOWED

