[cancelled]standard wxdialog buttons with CreateButtonSizer
Posted: Tue Jun 28, 2005 9:55 pm
Hi all, quote from wxWidgets doc:
I tried
But no button appears in my dialog box...
This doesn't show any kind of buttons in my wxDialog... How to do that?wxDialog::CreateButtonSizer
wxSizer* CreateButtonSizer(long flags)
Creates a sizer with standard buttons. flags is a bit list of the following flags: wxOK, wxCANCEL, wxYES, wxNO, wxHELP, wxNO_DEFAULT.
I tried
Code: Select all
wxSizer* sizer1;
Open_session *myDlg = new Open_session(NULL);
sizer1 = myDlg->CreateButtonSizer(wxOK|wxCANCEL);
myDlg->ShowModal();