Hello,
I have a problem where I cannot show two wxFrame objects together. The second one only shows after the first one is minimized or closed.
So, if I have code as follows...
wxFrame * frame1 = new wxFrame(NULL, ....) // constructor
frame1->Center();
frame1->Show();
MyWorkerThread * thread = new MyWorkerThread();
thread->Create();
thread->Run();
wxFrame * frame2 = new wxFrame(NULL, ....) // constructor
frame2->Center();
frame2->Show();
frame2 only shows after frame1 has been minimized or closed. How can I show them together? I notice this only happens when I have a thread running...
Cheers,
Luca
Problems with showing two wxFrame objects
Problems with showing two wxFrame objects
Last edited by xargon on Tue Mar 10, 2009 10:12 am, edited 1 time in total.
-
- Super wx Problem Solver
- Posts: 323
- Joined: Sun Jun 08, 2008 11:59 am
- Location: Bordeaux, France
Maybe by making the second to depend on the first ?
This work ? :
Bye
This work ? :
Code: Select all
wxFrame * frame2 = new wxFrame(frame1, ....)
Bye
OS: Ubuntu 11.10
Compiler: g++ 4.6.1 (Eclipse CDT Indigo)
wxWidgets: 2.9.3
Compiler: g++ 4.6.1 (Eclipse CDT Indigo)
wxWidgets: 2.9.3