+ // create the status line
+ const int widths[] = { -1, 60 };
+ CreateStatusBar(2);
+ SetStatusWidths(2, widths);
+ SetStatusText("no selection", 0);
+
// make a panel with some controls
wxPanel *pPanel = new wxPanel(this, -1, wxPoint(0, 0),
wxSize(400, 200), wxTAB_TRAVERSAL);
// make a panel with some controls
wxPanel *pPanel = new wxPanel(this, -1, wxPoint(0, 0),
wxSize(400, 200), wxTAB_TRAVERSAL);
- // create the status line
- const int widths[] = { -1, 60 };
- CreateStatusBar(2);
- SetStatusWidths(2, widths);
- SetStatusText("no selection", 0);
-
strSelection.sprintf("item %d was %schecked", nItem,
m_pListBox->IsChecked(nItem) ? "" : "un");
SetStatusText(strSelection);
strSelection.sprintf("item %d was %schecked", nItem,
m_pListBox->IsChecked(nItem) ? "" : "un");
SetStatusText(strSelection);