Show wxTestableFrame from its ctor
No real changes, just always show the frame as we need it to be shown for the tests to run anyhow. Also update the nonsensical comment about creating a hidden window just before showing it.
This commit is contained in:
parent
e29bfda8d8
commit
de491dd67f
@ -559,9 +559,8 @@ bool TestApp::OnInit()
|
||||
cout << std::endl;
|
||||
|
||||
#if wxUSE_GUI
|
||||
// create a hidden parent window to be used as parent for the GUI controls
|
||||
wxTestableFrame* frame = new wxTestableFrame();
|
||||
frame->Show();
|
||||
// create a parent window to be used as parent for the GUI controls
|
||||
new wxTestableFrame();
|
||||
|
||||
Connect(wxEVT_IDLE, wxIdleEventHandler(TestApp::OnIdle));
|
||||
#endif // wxUSE_GUI
|
||||
|
@ -20,6 +20,8 @@ wxTestableFrame::wxTestableFrame() : wxFrame(NULL, wxID_ANY, "Test Frame")
|
||||
{
|
||||
// Use fixed position to facilitate debugging.
|
||||
Move(200, 200);
|
||||
|
||||
Show();
|
||||
}
|
||||
|
||||
void wxTestableFrame::OnEvent(wxEvent& evt)
|
||||
|
Loading…
Reference in New Issue
Block a user