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:
Julian Smart
1998-07-02 15:19:34 +00:00
parent 201812a850
commit ae8351fc61
16 changed files with 1761 additions and 1252 deletions

View File

@@ -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;
}