Maxgui does not work - why?

BlitzMax Forums/MaxGUI Module/Maxgui does not work - why?

gekkonier(Posted 2008) [#1]
Hi, I installed from scratch Blitzmax 1.30, and then i copied the MaxGUI 1.30 mod directory to the program folder. (all on windows xp)
Looks like this:
C:\Program Files\BlitzMax\mod\maxgui.mod
and there are the folders maxgui.mod, win32maxgui.mod and so on.

But if I try to compile this:


i get: Compile Error - Identifier 'TGadget' not found.

What could be wrong?


Thanks in advance, Gregor

Ps.: The same procedere, but with the blitz3dsdk mod works, but maxgui not.
pps.: please ignore my bad english *g*


Mogwins(Posted 2008) [#2]
I just had the same problem. You need to add "Import MaxGUI.Drivers" after "strict", but before any GUI calls (i.e., at the top, in your example).


gekkonier(Posted 2008) [#3]
Ah, fine!
Thank you!

The examples delivered with blitzmax should be updated then ;)


SebHoll(Posted 2008) [#4]
The examples delivered with blitzmax should be updated then

They should all be corrected... If you find one that isn't, then please do let us know. I thought sliderthing was the only sample that suffered from this problem, but this has since been fixed in the BlitzMax SVN repository.


Mogwins(Posted 2008) [#5]
None of the MaxGUI tutorials feature the "Import MaxGUI.Drivers" call, as far as I can tell. Might be worth adding - I had to do some digging to find the solution.


gekkonier(Posted 2008) [#6]
Maybe its already in the svn, but i dont have the time to try out using the svn things. ;)
But with this information it all should go okay with the official builds.


Drackbolt(Posted 2008) [#7]
Glad someone already brought this up. It should definitely be documented in the changes for 1.30 somehow.