Creating a BMax default style window with MaxGUI?

BlitzMax Forums/MaxGUI Module/Creating a BMax default style window with MaxGUI?

QuickSilva(Posted 2009) [#1]
Is it possible to create a window that acts like a normal BMax one, i.e. one that works in an identical manner without the need to use wait events to get keyboard input and so on with the added benefit of a minimize and maximise button hence why I need to use MaxGUI. This is the only extra functionality that I need but it seems that I have to rework all of my keyboard input, screen updating code etc... to be able to use MaxGUI windows. Is this correct or am I missing something? Maybe another option is available?

Thanks for any help,

Jason.


SebHoll(Posted 2009) [#2]
Just call EnablePolledInput(), and the normal Max2D keyboard commands should work.


QuickSilva(Posted 2009) [#3]
I`ve seen this command mentioned before but it doesn`t seem to highlight\register in the IDE (BMax.133) like the other GUI commands do. It is also not listed in the help files.

I`m pretty sure that this is the command that I am looking for so I`m not sure why I cannot use it? Any ideas?

Jason.


klepto2(Posted 2009) [#4]
If you're using Framework, you may need to import brl.polledinput.

maybe this code helps you a bit:




QuickSilva(Posted 2009) [#5]
OK, I`ve got it now, thanks for the help both of you :)

Jason.