Major changes to Dialog Editor (still at alpha level)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@170 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -36,18 +36,26 @@ MyApp::MyApp(void)
|
||||
{
|
||||
}
|
||||
|
||||
wxResourceManager theResourceManager;
|
||||
wxResourceManager *theResourceManager = NULL;
|
||||
|
||||
bool MyApp::OnInit(void)
|
||||
{
|
||||
theResourceManager.Initialize();
|
||||
theResourceManager.ShowResourceEditor(TRUE);
|
||||
theResourceManager = new wxResourceManager;
|
||||
theResourceManager->Initialize();
|
||||
|
||||
theResourceManager->ShowResourceEditor(TRUE);
|
||||
|
||||
if (argc > 1)
|
||||
theResourceManager.Load(argv[1]);
|
||||
if (argc > 1)
|
||||
theResourceManager->Load(argv[1]);
|
||||
|
||||
SetTopWindow(theResourceManager.GetEditorFrame());
|
||||
SetTopWindow(theResourceManager->GetEditorFrame());
|
||||
|
||||
return TRUE;
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
int MyApp::OnExit(void)
|
||||
{
|
||||
delete theResourceManager;
|
||||
theResourceManager = NULL;
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user