Discussion:
wxPanel::Enable on wxOSX/Cocoa
Roman Hiestand
2014-03-27 12:16:56 UTC
Permalink
Hello all

In my application, I have a wxPanel and several widgets as children,
grouped with wxBoxSizers (created with wxFormBuilder). During
a lengthy operation, I would like to Disable all widgets (except for
a progress gauge) and then re-enable them when the operation is finished.
On Windows and Linux/GTK, when I call

pPanel->Enable(false);

all widgets inside the wxPanel are disabled (or enabled when I call
Enable(true) ). On OS X/Cocoa, this does not happen. In fact, nothing
happens when I call Enable on a panel.
Is this a bug of wxWidgets on OS X/Cocoa?
Is there another way to disable/enable all widgets of a panel at once?

As a workaround, I now enable/disable all GUI elements individually.

Another thing: Disabling a wxNotebook also has no effect on OS X/Cocoa,
while it works perfectly on Windows and Linux/GTK.

I have tried several versions of wxWidgets, among them 3.0.0, 2.9.4 and
2.9.5. All have the same problem.

Thanks in advance
Roman
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Vadim Zeitlin
2014-03-27 14:22:09 UTC
Permalink
On Thu, 27 Mar 2014 13:16:56 +0100 Roman Hiestand wrote:

RH> On Windows and Linux/GTK, when I call
RH>
RH> pPanel->Enable(false);
RH>
RH> all widgets inside the wxPanel are disabled (or enabled when I call
RH> Enable(true) ). On OS X/Cocoa, this does not happen.

This is a known bug, see http://trac.wxwidgets.org/ticket/15495

Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
Loading...