Disabled or hidden notebook tabs

223 views
Skip to first unread message

Steve Cookson

unread,
Jul 2, 2009, 10:36:54 AM7/2/09
to wx-u...@googlegroups.com

Hi All,

I have a wxPerl application relying heavily on wxNotebook tabs.  When I hide or disable, I get no visible or behavioural sign on the tab. 

When I disable:

     $self->{Ctl_Schedule_Tab}->Enable(0);

I can tab to the page but all the controls are frozen. OK, I can understand how this might be acceptable behaviour, but really I would have expected the tab colour to change to indicate status 'disabled' and for clicking on the tab to produce a bell sound and not navigate to the new page.

When I hide the tab:

     $self->{Ctl_Schedule_Tab}->Show(0);

I get no change in visible or active behaviour.  All the controls are visible and enabled. I would expect the tab to be hidden from view, but for programmatic navigation to the tab to work normally.

Am I just not doing it properly, or is this how the two functions operate?

Any ideas gratefully received.

Regards

Steve

São Paulo
Brasil

Blank Bkgrd.gif

Vadim Zeitlin

unread,
Jul 2, 2009, 11:10:06 AM7/2/09
to wx-u...@googlegroups.com
On Thu, 2 Jul 2009 11:36:54 -0300 Steve Cookson <steve....@sca-uk.com> wrote:

SC> I have a wxPerl application relying heavily on wxNotebook tabs. When I
SC> hide or disable, I get no visible or behavioural sign on the tab.

Neither hiding nor disabling of the tabs is supported. Of course, you may
always temporarily remove a page from the notebook to implement hiding.

Regards,
VZ

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

Steve Cookson

unread,
Jul 2, 2009, 11:43:55 AM7/2/09
to wx-u...@googlegroups.com
OK, thanks for this. I'll find another way to do it.

-----Original Message-----
From: wx-u...@googlegroups.com [mailto:wx-u...@googlegroups.com] On Behalf
Of Vadim Zeitlin
Sent: 02 July 2009 12:10
To: wx-u...@googlegroups.com
Subject: Re: Disabled or hidden notebook tabs

On Thu, 2 Jul 2009 11:36:54 -0300 Steve Cookson <steve....@sca-uk.com>
wrote:

SC> I have a wxPerl application relying heavily on wxNotebook tabs.

SC> When I hide or disable, I get no visible or behavioural sign on the tab.

Reply all
Reply to author
Forward
0 new messages