Tgadget not found - MacOS
BlitzMax Forums/MaxGUI Module/Tgadget not found - MacOS
| ||
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? |
| ||
Are you using : Framework maxgui.drivers or Import maxgui.drivers ? :-) |
| ||
Or, if you are specifically Mac-only... you can do : Framework maxgui.cocoamagui or Import maxgui.cocoamaxgui :-) |
| ||
Sorry, what do I do with the code? I'm a total beginner... |
| ||
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. |
| ||
Thank you so much! |
| ||
Why is it now necessary to explicitly import maxgui in order for it to work? |
| ||
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. |