Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

RE: Tabbed frame questions
> 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

Report this thread to moderator Post Follow-up to this message
Old Post
Dean Arnold
08-28-04 01:56 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PerlTk archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 04:53 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.