Code: Select all
Graphics::Graphics( Configuration *Config )
{
this->frame_id = TOPLEVEL;
ID( NewControlId( 1 ));
Create( NULL, ID( ), this->window_title );
// Set the options for the frame
Menu( this->frame_id );
// Make a panel to cover the entire client area
wxPanel *TopClientArea = new wxPanel( this, wxID_ANY );
TopClientArea->SetBackgroundColour( wxColour( wxT( "#00ffff" )));
// Define a layout in the client area
wxGridBagSizer* layout = new wxGridBagSizer(0, 0);
layout->SetEmptyCellSize( wxSize( 150, 50 ));
TopClientArea->SetSizer( layout );
SetAutoLayout( true );
// Add a panel to the upper-left quadrant of the layout
wxPanel *SubPanel = new wxPanel( TopClientArea, wxID_ANY );
SubPanel->SetBackgroundColour( wxColour( wxT( "#00ff00" )));
layout->Add( SubPanel, wxGBPosition(0, 0), wxGBSpan(1, 1), wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);
};