Create test frame in menu test in more predetermined position
Create this frame as child of the main application window to make it appear near it, instead of in a more or less random location. This facilitates debugging, but doesn't really change anything otherwise.
This commit is contained in:
@@ -138,7 +138,7 @@ CPPUNIT_TEST_SUITE_NAMED_REGISTRATION( MenuTestCase, "MenuTestCase" );
|
|||||||
|
|
||||||
void MenuTestCase::CreateFrame()
|
void MenuTestCase::CreateFrame()
|
||||||
{
|
{
|
||||||
m_frame = new wxFrame(NULL, wxID_ANY, "test frame");
|
m_frame = new wxFrame(wxTheApp->GetTopWindow(), wxID_ANY, "test frame");
|
||||||
|
|
||||||
wxMenu *fileMenu = new wxMenu;
|
wxMenu *fileMenu = new wxMenu;
|
||||||
wxMenu *helpMenu = new wxMenu;
|
wxMenu *helpMenu = new wxMenu;
|
||||||
|
Reference in New Issue
Block a user