wxWindowDisabler Class Reference
[Miscellaneous]

#include <wx/utils.h>


Detailed Description

This class disables all windows of the application (may be with the exception of one of them) in its constructor and enables them back in its destructor.

This is useful when you want to indicate to the user that the application is currently busy and cannot respond to user input.

Library:  wxCore
Category:  Miscellaneous
See also:
wxBusyCursor

Public Member Functions

 wxWindowDisabler (bool disable=true)
 Disables all top level windows of the applications.
 wxWindowDisabler (wxWindow *winToSkip)
 Disables all top level windows of the applications with the exception of winToSkip if it is not NULL.
 ~wxWindowDisabler ()
 Reenables the windows disabled by the constructor.

List of all members.


Constructor & Destructor Documentation

wxWindowDisabler::wxWindowDisabler ( bool  disable = true  ) 

Disables all top level windows of the applications.

If disable is false nothing is done. This can be convenient if the windows should be disabled depending on some condition.

Since:
2.9.0
wxWindowDisabler::wxWindowDisabler ( wxWindow winToSkip  ) 

Disables all top level windows of the applications with the exception of winToSkip if it is not NULL.

wxWindowDisabler::~wxWindowDisabler (  ) 

Reenables the windows disabled by the constructor.

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines



wxWidgets logo

[ top ]