wxWizardPageSimple paint delayed?

Dave Bee davebeeus at yahoo.com
Thu Dec 7 16:15:34 PST 2006


I am writing a small wxWizard based application. I am
basically following the example set by the wxWizard
sample. I am taking the modeless route which
essentially uses the following code when ready to run:

  
     FinishLayout(); 
     ShowPage(page1); 
     Show(true); 
     PlayIntroMusic(muzak.wav); 
  
The wizard is running OK and the application is fully
functional - except for a minor annoyance: When I
place PlayIntroMusic() after Show(true), the
PlayIntroMusic() starts before that wizard page is
fully painted/drawn. Only when that intro music 
finished playing does the wizard page get drawn. 
  
Any idea why this is happening? 
  
What I actually wanted to happen is that the page gets
fully displayed and while the user reading the text,
the music gets played. 
  
Any idea how to accomplish that, working around the
above described problem? 
  
Thanks, 
Dave
_________________
wxMSW-2.6.3 / Visual C++ 6.0 SP6 / Windows 2000 SP5



 
____________________________________________________________________________________
Have a burning question?  
Go to www.Answers.yahoo.com and get answers from real people who know.




More information about the wx-users mailing list