Identifier 'TGadget' not found ---MaxGui

BlitzMax Forums/BlitzMax Tutorials/Identifier 'TGadget' not found ---MaxGui

Galdy(Posted 2012) [#1]
I'm starting the maxgui beginners tutorial series and pasted the code below from tutoral 1 and got a "Identifier 'TGadget' not found." I'm currently using the demo version of bmax. Am I missing something or does the demo not have the maxgui module?


MyFirstWindow:TGadget=CreateWindow("My Window Title is Hello World", 200,200,320,240)

Repeat
WaitEvent()
Until EventID()=EVENT_WINDOWCLOSE

End


degac(Posted 2012) [#2]
Hi

I suppose you miss the MaxGUI module in the c: blitzmax mod folder.
In any case you need to use IMPORT Maxgui.drivers to use it.
I'm not sure you can use MaxGUI with bmax demo (maybe it works or not).

SuperStrict
Import maxgui.drivers


Global window:tgadget=		CreateWindow("Main",100,100,300,300,,WINDOW_TITLEBAR|WINDOW_CENTER)
Repeat
	WaitEvent()
	
	Select EventID()
		Case EVENT_APPTERMINATE, EVENT_WINDOWCLOSE
			End
	End Select
Forever


Cheers

Last edited 2012

Last edited 2012