Feature #4027 2008-02-26 13:58
tiborgats
wxSmith - placing controls on StatusBar
It would be nice to be able to place controls on the wxStatusBar. I show an sample for the code generation for the case of placing a wxGauge on a wxStatusBar's second field.:
...
StatusGauge = new wxGauge(StatusBar, -1, 100, wxDefaultPosition, wxDefaultSize, wxGA_HORIZONTAL); StatusBar->Connect(ID_STATUSBAR, wxEVT_SIZE, (wxObjectEventFunction)&MyFrame::OnStatusBarSize, 0, this);
...
void MyFrame::OnStatusBarSize(wxSizeEvent& event) { wxRect tempRect; StatusBar->GetFieldRect(1, tempRect); StatusGauge->SetSize(tempRect); }
- Category
- RAD
- Status
- Open
- Close date
- Assigned to