Add wxTopLevelWindow::Enable{Maximize,Minimize}Button()
Allow to disable maximize and minimize buttons dynamically just as we already allow to disable the "Close" button using EnableCloseButton(). Currently implemented for MSW and OSX only. Closes #17133.
This commit is contained in:
committed by
Vadim Zeitlin
parent
6055d8d0a5
commit
fe9a5f47f4
@@ -148,6 +148,39 @@ public:
|
||||
*/
|
||||
virtual bool EnableCloseButton(bool enable = true);
|
||||
|
||||
/**
|
||||
Enables or disables the Maximize button (in the right or left upper
|
||||
corner of a frame or dialog).
|
||||
|
||||
Currently only implemented for wxMSW and wxOSX.
|
||||
|
||||
The window style must contain wxMAXIMIZE_BOX.
|
||||
|
||||
Returns @true if operation was successful. Note that a successful
|
||||
operation does not change the window style flags.
|
||||
|
||||
@since 3.1.0
|
||||
*/
|
||||
virtual bool EnableMaximizeButton(bool enable = true);
|
||||
|
||||
/**
|
||||
Enables or disables the Minimize button (in the right or left upper
|
||||
corner of a frame or dialog).
|
||||
|
||||
Currently only implemented for wxMSW and wxOSX.
|
||||
|
||||
The window style must contain wxMINIMIZE_BOX.
|
||||
|
||||
Note that in wxMSW a successful operation will change the window
|
||||
style flags.
|
||||
|
||||
Returns @true if operation was successful. Note that a successful
|
||||
operation does not change the window style flags.
|
||||
|
||||
@since 3.1.0
|
||||
*/
|
||||
virtual bool EnableMinimizeButton(bool enable = true);
|
||||
|
||||
/**
|
||||
Returns a pointer to the button which is the default for this window, or
|
||||
@c @NULL. The default button is the one activated by pressing the Enter
|
||||
|
Reference in New Issue
Block a user