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:
@@ -365,6 +365,10 @@ bool wxWindow::Enable(bool enable)
|
||||
if ( hWnd )
|
||||
::EnableWindow(hWnd, (BOOL)enable);
|
||||
|
||||
// VZ: no, this is a bad idea: imagine that you have a dialog with some
|
||||
// disabled controls and disable it - you really wouldn't like the
|
||||
// disabled controls eb reenabled too when you reenable the dialog!
|
||||
#if 0
|
||||
wxWindowList::Node *node = GetChildren().GetFirst();
|
||||
while ( node )
|
||||
{
|
||||
@@ -373,6 +377,7 @@ bool wxWindow::Enable(bool enable)
|
||||
|
||||
node = node->GetNext();
|
||||
}
|
||||
#endif // 0
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
Reference in New Issue
Block a user