Allow to leave another window enabled in wxWindowDisabler

Allow specifying another window to "skip", i.e. not to disable, in
wxWindowDisabler.

This is not used yet, but will be in the upcoming commit.
This commit is contained in:
Vadim Zeitlin
2022-04-07 23:38:16 +01:00
parent bc81682e7f
commit 717e851225
3 changed files with 10 additions and 4 deletions

View File

@@ -732,8 +732,8 @@ public:
// it doesn't do anything
explicit wxWindowDisabler(bool disable = true);
// ctor disables all windows except winToSkip
explicit wxWindowDisabler(wxWindow *winToSkip);
// ctor disables all windows except the given one(s)
explicit wxWindowDisabler(wxWindow *winToSkip, wxWindow *winToSkip2 = NULL);
// dtor enables back all windows disabled by the ctor
~wxWindowDisabler();