1. WXEuphoria basic info
- Posted by sixs <sixs at ida.net> Feb 04, 2005
- 472 views
Hello, I was wondering if there is some documentation on the routines called by other routines. For example: wxMain(MainWindows) what routines are automaically called by wxMain. -- onOpen is called or can be called by wxMain, .onPaint_MyWindow is called when? or why? I went out to wxwidgets web site but didn't find any thing, probably just missed it. I have .looked at wxEuphoria documentation and can't find anything. One thing noticed was that I put a trace(1) statement in onPaint_MyWindow and ran the program. It tracedt through the procedure many times. I thought it would only trace through one time. Jvandal
2. Re: WXEuphoria basic info
- Posted by Matt Lewis <matthewwalkerlewis at yahoo.com> Feb 04, 2005
- 456 views
sixs wrote: > > Hello, > I was wondering if there is some documentation on the routines called by > other routines. > For example: > wxMain(MainWindows) > what routines are automaically called by wxMain. -- onOpen is called > or can be called by wxMain, .onPaint_MyWindow is called when? or why? > > I went out to wxwidgets web site but didn't find any thing, probably > just missed it. I have .looked at wxEuphoria documentation and can't > find anything. > One thing noticed was that I put a trace(1) statement in > onPaint_MyWindow and ran the program. It tracedt through the procedure > many times. I thought it would only trace through one time. Your opPaint_myWindow will be called whenever the OS/window manager sends a paint event. So whenever your window needs to be redrawn, it will be called. This is the same as Win32Lib, ARWEN, EuGTK, etc. The same goes for other event handlers. They're called when wxEuphoria receives an event from the OS. wxMain calls some routines to properly initialize everything (most of those are already done in initialize()) and then opens the window that you specifiy. After you close that window or call exit_main(), wxMain() cleans things up. Matt Lewis