- // Create a menu bar
- wxMenu *menuFile = new wxMenu;
- wxMenu *menuNav = new wxMenu;
- menuFile->Append(Minimal_Quit, "E&xit");
- menuNav->Append(Minimal_Back, "Go &back");
- menuNav->Append(Minimal_Forward, "Go &forward");
-
- // Now append the freshly created menu to the menu bar...
- wxMenuBar *menuBar = new wxMenuBar;
- menuBar->Append(menuFile, "&File");
- menuBar->Append(menuNav, "&Navigate");
-
- // ... and attach this menu bar to the frame
- SetMenuBar(menuBar);
- CreateStatusBar(2);
-
- // Create the HTML window
- html = new wxHtmlAppletWindow(this);
- html->SetRelatedFrame(this, "wxApplet Demo: '%s'");
- html->SetRelatedStatusBar(1);
- html->LoadPage("index.html");
+ // Create a menu bar
+ wxMenu *menuFile = new wxMenu;
+ wxMenu *menuNav = new wxMenu;
+ menuFile->Append(Minimal_Quit, "E&xit");
+ menuNav->Append(Minimal_Back, "Go &back");
+ menuNav->Append(Minimal_Forward, "Go &forward");
+
+ // Now append the freshly created menu to the menu bar...
+ wxMenuBar *menuBar = new wxMenuBar;
+ menuBar->Append(menuFile, "&File");
+ menuBar->Append(menuNav, "&Navigate");
+
+ // ... and attach this menu bar to the frame
+ SetMenuBar(menuBar);
+ CreateStatusBar(2);
+
+ // Create the HTML window
+ html = new wxHtmlAppletWindow(this);
+ html->SetRelatedFrame(this, "wxApplet Demo: '%s'");
+ html->SetRelatedStatusBar(1);
+ html->LoadPage("index.html");