Previously posted Here
(but content got so large that it was difficult to find)
An example on This Page shows a mainloop something like this: But I cannot find the identifier m_shouldExit !!
<-- SNIP -->
(but content got so large that it was difficult to find)
Scaremonger wrote:
The mainloop.bmx example does not exit properly. The loop continues to run after the window has closed because the loop is a While True..Wend
Is there an equivalent to appTerminate() that can be used to force it to exit, or should we pick up the wxEVT_CLOSE event and set our own flag ?
The mainloop.bmx example does not exit properly. The loop continues to run after the window has closed because the loop is a While True..Wend
Is there an equivalent to appTerminate() that can be used to force it to exit, or should we pick up the wxEVT_CLOSE event and set our own flag ?
Brucey wrote:
Yeah... I've kind of not got my head around that completely yet - hence all the debug.
The idea is to run your own main-loop, rather than let wxWidgets run its own - which is normally the case. While at the same time, try to control it from BlitzMax.
The difficulty is finding clear examples on the net that show it in action.
Yeah... I've kind of not got my head around that completely yet - hence all the debug.
The idea is to run your own main-loop, rather than let wxWidgets run its own - which is normally the case. While at the same time, try to control it from BlitzMax.
The difficulty is finding clear examples on the net that show it in action.
An example on This Page shows a mainloop something like this: But I cannot find the identifier m_shouldExit !!
<-- SNIP -->