wxUpdateUIEvent with a ListBook
Vadim Zeitlin
vadim at wxwidgets.org
Mon Apr 7 13:04:42 PDT 2008
On Mon, 7 Apr 2008 12:56:26 -0700 (PDT) Alejandro Mostovoi <a.mostovoi at yahoo.com.ar> wrote:
AM> Are you telling me that, with wxUpdateUIEvent, wxListbook doesn't
AM> support disabling its pages?? Becouse I could enable/disabled pages
AM> from a Listbook, with this code:
AM>
AM> plistbook->GetPage(0)->Enable(false); or
AM> plistbook->GetPage(0)->Enable(true);
This code disables the page contents, but doesn't really disable the page,
in particular its icon can still be clicked in the control and nothing
prevents the user from switching to it. So I said what I meant, i.e. that
really disabling pages is not supported.
But if you only need to disable the page contents then you can do it but
you should connect your update UI handler to the page itself.
Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
More information about the wx-users
mailing list