Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
rev 2173
Ceniza:
Few differences with wxWidget's implementation:
wxSS can receive a parent.
wxSS creates a special widget to draw the bitmap and adds it to the frame (I tried this already but the results in Linux aren't that good).
wxSS stops the timer in its destructor.
wxSS has an OnCloseWindow function that stops the timer and destroys the frame (thru EVT_CLOSE).
wxSS adds EVT_CHAR and EVT_MOUSE_EVENTS to its child window, which will close the window.
I wonder if adding some of those would be of any help.
BTW, the splash sample does it this way:
The main frame is created first (just created). Now the splash screen is created with the frame as parent. Follows a call to wxYield() and then frame->Show(true).
I'll try to add some of those changes to my working copy and commit them to SVN (http://svn.cenizasoft.cjb.net/ -> BattleCS -> Server).
Ceniza:
It's now committed.
The only thing I didn't implement was the use of a child widget to draw.
Navigation
[0] Message Index
[*] Previous page
Go to full version