Code Comments
Programming Forum and web based access to our favorite programming groups.> I am using Tabbed Frames successfully but I have two questions.
>
> Can you 'raise' a particular tabbed frame, via a Perl/Tk call, so that
> it is at the 'front'?
>
> Is it possible to 'grey' a tab out (via a Perl/Tk call) so that the tab
> cannot be selected?
>
> Best regards
>
> Henry Merryweather
Which tabbed frame are you using ? Tk::TabFrame, Tk::DynaTabFrame, or
Tk::Notebook ?
Tk::DynaTabFrame has a raise() method; can't recall if TabFrame
does; I think Notebook does as well.
Tk::DynaTabFrame doesn't directly support disabling a tab, but
by using the $frame->cget('-tabs') method, you can
get a hashref of the tab button widgets the tabs use to
handle the "click", and enable/disable them yourself:
(NOTE: I've never tried this, but it should work...)
my $tabs = $tabframe->cget(-tabs);
$tabs->{"MyDisabledTab"}->configure(-state => 'disabled');
I don't think TabFrame supports that, and can't recall if Notebook
has a disable mechanism.
HTH,
Dean Arnold
Presicient Corp.
-++**==--++**==--++**==--++**==--++**==--++**==--++**==
This message was posted through the Stanford campus mailing list
server. If you wish to unsubscribe from this mailing list, send the
message body of "unsubscribe ptk" to majordomo@lists.stanford.edu
Post Follow-up to this messagePowered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.