MaxGUI Imports bug?

BlitzMax Forums/BlitzMax Programming/MaxGUI Imports bug?

Mark Tiffany(Posted 2006) [#1]
Apologies for this being a little 'vague'. There appears to be some kind of bug in MaxGUI imports. In the current MaxIDE (Community Edition and the original BRL version), surely you should be able to comment out the platform specific imports below:

Framework brl.maxgui

?win32
Import "maxicons.o"
?

Import brl.win32maxgui
Import brl.cocoamaxgui
Import brl.fltkmaxgui


If I create a small project, then it seems that I can comment out the imports. But not in the MaxIDE code - unhandled exception on running.


Mark Tiffany(Posted 2006) [#2]
doh. Can some kind mos please move this to the 'max bug forum please?


ozak(Posted 2006) [#3]
When using framwork I think you need to include the platform specific maxgui module.
But it's not problemo. Just wrap it in ?win32 ?macos etc.
Works fine for me :)


Mark Tiffany(Posted 2006) [#4]
Just seems odd to me that you should need to - surely the ?win32 import of each framework should be inside the maxgui mod itself?


Chris C(Posted 2006) [#5]
What if you've written your own driver for say gtk....