// Licence: wxWindows license
/////////////////////////////////////////////////////////////////////////////
-/*!
+/**
- @page overview_helloworld wxWidgets Hello World sample
+ @page overview_helloworld Hello World Example
Many people have requested a mini-sample to be published here
so that some quick judgment concerning syntax
giving it a menu and a status bar in its constructor. Also, any class
that wishes to respond to any "event" (such as mouse clicks or
messages from the menu or a button) must declare an event table
- using the macro below.
+ using the macro below.
Finally, the way to react to such events must be done in "handlers".
In our sample, we react to two menu items, one for "Quit" and one for
bool MyApp::OnInit()
{
MyFrame *frame = new MyFrame( "Hello World", wxPoint(50,50), wxSize(450,340) );
- frame-Show( true );
+ frame->Show( true );
SetTopWindow( frame );
return true;
}
{
wxMenu *menuFile = new wxMenu;
- menuFile-Append( ID_About, "" );
- menuFile-AppendSeparator();
- menuFile-Append( ID_Quit, "E" );
+ menuFile->Append( ID_About, "" );
+ menuFile->AppendSeparator();
+ menuFile->Append( ID_Quit, "E" );
wxMenuBar *menuBar = new wxMenuBar;
- menuBar-Append( menuFile, "" );
+ menuBar->Append( menuFile, "" );
SetMenuBar( menuBar );