When creating G.U.I stuff like windows, should you make a
seperate function for it, or just do something like this-
NOT A PROBLEM! just wanted to know what you guys would reccomend. P.S if you test, please tell me why
the button won't work.
seperate function for it, or just do something like this-
main=CreateWindow("MAIN",300,300,400,500,main,15) button=CreateButton("Hello",200,200,100,100,main,1) list=CreateListBox(100,200,200,200,main) AddGadgetItem List,"TIME" AddGadgetItem List,"PLACE" ;Functions Function Apocalypse() While WaitEvent<>$803 If WaitEvent()=$803 Then Notify("Its the Apocalypse!") EndIf Wend End End Function Function Start() While WaitEvent()<>$803 If EventID()=$401 If EventSource()=button Notify("Hope it worked!") EndIf EndIf Wend End End Function Apocalypse() Start() End
NOT A PROBLEM! just wanted to know what you guys would reccomend. P.S if you test, please tell me why
the button won't work.