MagGUI and code execution

BlitzMax Forums/BlitzMax Programming/MagGUI and code execution

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?

...

I've worked around the problem using a callback but i'd still be interest in knowing why this happens.

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.

Thanks.