Disable a notebook page?

I have not tried this, but if you don't mind using images instead of
text on your notebook tabs, I think you could:
1) make images for enabled and disabled states that look like the
appropriate text
2) handle the wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING event
3) if the page is "disabled", Veto() the event

HTH,
Bruce

···

-----Original Message-----
From: Robin Dunn [mailto:robin@alldunn.com]
Sent: Wednesday, April 26, 2006 3:18 PM
To: wxPython-users@lists.wxwidgets.org
Subject: Re: [wxPython-users] Disable a notebook page?

Gavana, Andrea wrote:

Hello Dave,

Hello All. I was just looking around to see if an individual
notebook page could be disabled and enabled. So, that the

I don't think it is possible with a wx.Notebook,

No, but you can do something similar. You can disable the page window,
and any controls on that page will be disabled as well, but the notebook
will still allow you to select that page.

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

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org