Document that Enable() can be called before creating the window

Explicitly mention that calling Enable() for a window which hasn't been
created yet is allowed.
This commit is contained in:
Vadim Zeitlin
2018-12-09 01:48:49 +01:00
parent 96f3832d52
commit 0de31f03a1

View File

@@ -2834,6 +2834,14 @@ public:
disabled, all of its children are disabled as well and they are reenabled again disabled, all of its children are disabled as well and they are reenabled again
when the parent is. when the parent is.
A window can be created initially disabled by calling this method on it
@e before calling Create() to create the actual underlying window, e.g.
@code
wxWindow* w = new MyWindow(); // Note: default ctor is used here.
w->Enable(false);
w->Create(parent, ... all the usual non-default ctor arguments ...);
@endcode
@param enable @param enable
If @true, enables the window for input. If @false, disables the window. If @true, enables the window for input. If @false, disables the window.