how to keep a window fix-sized?
Posted: Tue Feb 05, 2008 9:12 pm
Hi, I searched in the documentation for a while but couldn't figure it out. What I currently do is:
but it obviously isn't a good way and the window flashes too much when I try resizing (even though the size is kept fixed).
Code: Select all
void MainWindow::OnSize(wxSizeEvent &WXUNUSED(event) )
{
this->SetSize(800,600);
}
BEGIN_EVENT_TABLE(MainWindow, wxFrame)
EVT_SIZE( MainWindow::OnSize)
END_EVENT_TABLE()