[MaxGUI] multiple windows...

BlitzMax Forums/BlitzMax Beginners Area/[MaxGUI] multiple windows...

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Is this what you mean?
Global Window1:TGadget = CreateWindow("Window 1", 100,100,400,400)
	Global Button1:TGadget = CreateButton("Show", 10,10,100,25, Window1)
Global Window2:TGadget = CreateWindow("Window 2", 550, 100, 400,400)



While Not quit
	WaitEvent()
	
	Select EventID()
		Case EVENT_WINDOWCLOSE
			Select EventSource()
				Case Window1
					quit = True
				Case Window2
					HideGadget(Window2)
			End Select
		Case EVENT_GADGETACTION
			Select EventSource()
				Case Button1
					ShowGadget(Window2)
			End Select
	End Select
	
Wend

End