From: Frazier, J. J. <Joe...@Pe...> - 2001-09-27 14:39:44
|
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. =20 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 joe...@pe... =20 -----Original Message----- From: Mark Wilkinson [mailto:ma...@il...] Sent: Thursday, September 27, 2001 10:28 AM To: ""Frazier; Frazier, Joe Jr; per...@li... 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 ma...@ch... ma...@il... > Given: >=20 > $menu =3D Win32::GUI::MakeMenu( > "&File" =3D> "File", > " > E&xit" =3D> "Exit", > "&Search" =3D> "Search", > " > &Client ID" =3D> "CID", > ); >=20 > then this: > $menu->{CID}->Enabled(0); >=20 > disables the Client ID menu command and=20 >=20 > $menu->{CID}->Enabled(1); >=20 > reenables it. >=20 |