Code: Select all
FWC := "55a0ff" ; first window window's color
FWFS := "16" ; first window window's font size
FWFT := "Verdana" ; first window window's font
gosub, CreateFirstWindow
return
CreateFirstWindow:
Gui New, hwndFW
Gui +LabelFW +WS_VSCROLL ; needed for such subs (later in this script) as FWCancel or FWClose
Gui, % FW . ":color", % FWC
Gui, % FW . ":font", % "s" . FWFS, % FWFT
Gui, % FW . ":add", Button, gShowSecond , Show 2nd window
Gui, % FW . ":add", Button, x+10 gFWClose , Exit
return
ShowSecond:
return
FWClose:
Gui % FW . ":Default"
Gui, % FW . ":destroy"
exitapp