GTKMaxGUI does not work

BlitzMax Forums/MaxGUI Module/GTKMaxGUI does not work

danvari(Posted 2007) [#1]
hello!

i am using blitzmax 1.26 and the latest maxgui. i downloaded gtkmaxgui and recompiled my modules (gtkmaxgui was listed though).
now if i try to import bah.gtkmaxgui nothing happens, which means, my application uses fltk although i told him to run in gtk.
that happens to every gui code :-\


SebHoll(Posted 2007) [#2]
now if i try to import bah.gtkmaxgui nothing happens, which means, my application uses fltk although i told him to run in gtk.
that happens to every gui code :-\

That's strange... What happens if you add...

Framework BaH.GTKMaxGUI
...to the top of your code, instead of Import BaH.GTKMaxGUI?


Brucey(Posted 2007) [#3]
If you don't use "Framework", by default BlitzMax will automatically import all BRL and Pub modules.
The FLTK module is a BRL module, and so gets imported automatically.
You will need to use Framework, and Import the modules you need, otherwise FLTK will be the GUI module on Linux, regardless what other modules you Import if you don't use Framework.

Of course, if the examples provided with BlitzMax used Framework, it might encourage its use a bit more... oh well...