1. wxProgressDialog uses wxWindowDisabler, not (dumb) wxEnableTopLevelWindows
2. some more wxWindowDisabler bugs fixed (updated dialogs sample to test them) 3. Esc won't close the dialogs without cancel button under MSW 4. status bar can be child of windows of clases other than wxFrame (updated statbar sample to show it) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6630 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -537,9 +537,20 @@ void MyCanvas::OnPaint(wxPaintEvent& WXUNUSED(event) )
|
||||
MyModelessDialog::MyModelessDialog(wxWindow *parent)
|
||||
: wxDialog(parent, -1, wxString("Modeless dialog"))
|
||||
{
|
||||
(void)new wxButton(this, DIALOGS_MODELESS_BTN, "Press me");
|
||||
Fit();
|
||||
Centre();
|
||||
wxBoxSizer *sizerTop = new wxBoxSizer(wxVERTICAL);
|
||||
|
||||
wxButton *btn = new wxButton(this, DIALOGS_MODELESS_BTN, "Press me");
|
||||
wxCheckBox *check = new wxCheckBox(this, -1, "Should be disabled");
|
||||
check->Disable();
|
||||
|
||||
sizerTop->Add(btn, 1, wxEXPAND | wxALL, 5);
|
||||
sizerTop->Add(check, 1, wxEXPAND | wxALL, 5);
|
||||
|
||||
SetAutoLayout(TRUE);
|
||||
SetSizer(sizerTop);
|
||||
|
||||
sizerTop->SetSizeHints(this);
|
||||
sizerTop->Fit(this);
|
||||
}
|
||||
|
||||
void MyModelessDialog::OnClose(wxCloseEvent& event)
|
||||
|
Reference in New Issue
Block a user