Look at the samples and "play". 8^(  To my knowledge, there is no
standard documentation which fully explains all the features of all
implimented controls.  This is why we have the list 8^).  Also, check
the archives on Sourceforge.net.  

 I took this from a program I had which has a menu, and added the
Enable/Disable to my program.  I then answered your question.  I got the
idea from "splitter.pl in the samples.  In the sub Vertical_Click, it
has :

$M->{Horizontal}->Checked(not $M->{Horizontal}->Checked );

# $M is your menu object
# Horizontal is sub-object as CID is below
# Checked is one of those undocumented methods.  I just replaced Enabled
and it worked....

Joe Frazier, Jr
Technical Support Engineer
PeopleClick
919-645-2916
[EMAIL PROTECTED]
 


-----Original Message-----
From: Mark Wilkinson [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 27, 2001 10:28 AM
To: ""Frazier; Frazier, Joe Jr;
perl-win32-gui-users@lists.sourceforge.net
Subject: RE: [perl-win32-gui-users] (no subject)


I can't find any documentation *at all* for Menu objects... all the docs
I
have say "TBA" when it comes to Menu's.  I am surprised and excited to
see
that they are implemented!  Please send me a URL where I can get updated
docs :-)

thanks all!

Mark Wilkinson
[EMAIL PROTECTED]
[EMAIL PROTECTED]
> Given:
> 
> $menu = Win32::GUI::MakeMenu(
>     "&File"     => "File",
>     " > E&xit"  => "Exit",
>     "&Search"   => "Search",
>     " > &Client ID"  => "CID",
> );
> 
> then this:
> $menu->{CID}->Enabled(0);
> 
> disables the Client ID menu command and 
> 
> $menu->{CID}->Enabled(1);
> 
> reenables it.
> 



Reply via email to