wxMax custom event loop?

BlitzMax Forums/Brucey's Modules/wxMax custom event loop?

Blueapples(Posted 2009) [#1]
I have some code that I would like to update to use wxMax, which makes use of my modified version of BP's MicroC library. This requires an event loop like the following:



Basically I need to call ScriptVM.RunThreads(-1) frequently in order to run the script in a timely fashion.

Is there a way for me to override the Run method of wxApp? The documentation for the most recent version I downloaded has nothing useful in the notes for this method so I don't know how to go about overriding it and making sure I do what needs to be done for wxMax to work correctly.


Brucey(Posted 2009) [#2]
Have a look at the "mainloop" sample. That may give you the control that you need.