Tgadget not found - MacOS

BlitzMax Forums/MaxGUI Module/Tgadget not found - MacOS

Lex(Posted 2009) [#1]
Hi, installed xcode, installed blitzmax, pasted maxgui.mod into the mod folder, rebuilt all the mods in the program IDE menu - and still the same problem...

Help?


Brucey(Posted 2009) [#2]
Are you using :

Framework maxgui.drivers

or

Import maxgui.drivers

?

:-)


Brucey(Posted 2009) [#3]
Or, if you are specifically Mac-only... you can do :

Framework maxgui.cocoamagui

or

Import maxgui.cocoamaxgui

:-)


Lex(Posted 2009) [#4]
Sorry, what do I do with the code? I'm a total beginner...


Brucey(Posted 2009) [#5]
Of course you are... apologies.

You add it to the top of the program. So for example, it might look like this :
SuperStrict

Framework MaxGUI.Drivers

Local window:TGadget = CreateWindow("MaxGui Buttons",40,40,240,300,Null,WINDOW_TITLEBAR)

....


Or, instead of the keyword "Framework" you can use "Import" in its place.


Lex(Posted 2009) [#6]
Thank you so much!


ImaginaryHuman(Posted 2009) [#7]
Why is it now necessary to explicitly import maxgui in order for it to work?


Brucey(Posted 2009) [#8]
Because the MaxGUI modules are no longer under the BRL namespace.

When you don't use Framework, your app automatically includes ALL modules from Pub and BRL. So, when MaxGUI was under BRL, you'd get that too.

Now it's under its own name - MaxGUI - you need to Import it.