Disabling a tab of a wxNotebook

Hi,

I'm trying to disable a wxNotebook tab until such time as the state of
the software has "qualified" for the options available on the panel.

I've thought about using wxWindows.Enable(False) as you would on a
button for example, but there is no element (that I can find) in the GUI
code that represents the tab control itself. Disabling the appropriate
wxPanel just gives a non-responsive, but still accessible panel - which
is not greyed-out and thus confusing to the user.

The code is legacy (i.e. inherited from a predecessor) and for some
reason does not use a wxTabCtrl - but having gone through the wxTabCtrl
docs I don't see how to disable a tab there either.

Any advice appreciated,

Mitch

···

---
Dr. Mitchell Polley, PHD BAppSc MRACI
Post-Doctoral Research Fellow
CSIRO Centre for Complexity in Drug Discovery
CSIRO Molecular Science
Bag 10, Clayton South VIC 3169, Australia
Phn: +61-3-9545-8113
Fax: +61-3-9545-2446

The best you can do is to change the icon on the tab to signify that it is disabled, and then veto the page changing event if they try to change to that page.

···

Mitchell.Polley@csiro.au wrote:

Hi,

I'm trying to disable a wxNotebook tab until such time as the state of
the software has "qualified" for the options available on the panel.

I've thought about using wxWindows.Enable(False) as you would on a
button for example, but there is no element (that I can find) in the GUI
code that represents the tab control itself. Disabling the appropriate
wxPanel just gives a non-responsive, but still accessible panel - which
is not greyed-out and thus confusing to the user.

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!