MagGUI and code execution

BlitzMax Forums/BlitzMax Programming/MagGUI and code execution

MarkAM(Posted 2006) [#1]
I have just about finished creating a tray icon class for windows. Works perfrectly if the parent window is create using the graphics command. If I use a max gui window the event code (or program loop) does not execute until the window is active which means events are not interpreted in a timely manner. I suspect this is because code execution is halted when no bmax window is active???

Can anyone help?


MarkAM(Posted 2006) [#2]
...


MarkAM(Posted 2006) [#3]
I've worked around the problem using a callback but i'd still be interest in knowing why this happens.


Dreamora(Posted 2006) [#4]
This is normal in windows. Only the active App receives Window Messages (ie System Events), so if you work in a "waitevent()" manner or similar it won't get any events while being inactive.


MarkAM(Posted 2006) [#5]
Thanks.