Add this line to the code I previously sent:
 
$menubar->entryconfigure(1,-state=>'disabled');
 
That should do it.
 
Jack


  _____  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Gary
D Trosper
Sent: Wednesday, January 10, 2007 6:14 PM
To: Bill Luebkert
Cc: perl-win32-users@Listserv.ActiveState.com
Subject: Re: Perl TK Graying out disabled menu items



That grays out the last item in the Edit drop down menu. 
It doesn't gray out Edit itself. 

Still searching, 
Gary T 




Bill Luebkert <[EMAIL PROTECTED]> 


01/10/2007 05:08 PM 


To
Gary D Trosper <[EMAIL PROTECTED]> 

cc
perl-win32-users@Listserv.ActiveState.com 

Subject
Re: Perl TK Graying out disabled menu items

        




Gary D Trosper wrote:
> 
> Thanks Jack that works!
> 
> However, he said in frustration,   I'm trying to gray out 'Edit'  on the 
> main menubar.
> 
> Using the "tried and true" cut and paste method I slipped this line into 
> the end of your code (Your code works)
> 
> $menubar->entryconfigure('Edit', -state=>'disabled');

my $m = $menus{'Edit'}->cget(-menu);
$m->entryconfigure('last', -state => 'disabled');

> and I get "Bad name after Edit on line 31"
> 
> Still struggling but pointed in the right direction,




_______________________________________________
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to