Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Determine Existance of VFP System Pad
Message
General information
Forum:
Visual FoxPro
Category:
Menus & Menu designer
Title:
Determine Existance of VFP System Pad
Miscellaneous
Thread ID:
00189666
Message ID:
00189666
Views:
57
I'm trying to set the visible/enabled properties of a toolbar's Cut/Copy/Paste buttons based on the existance of the System Edit Menu. The following code works properly:

Button.Enabled/Visible = ! SKPPAD('_medit','_med_copy')

The following fails:

Button.Enabled/Visible = POPUP('_medit') AND ! SKPPAD('_medit','_med_copy')

In the debug window, POPUP('_medit') evaluates to .F. I've verified that the pad name is _medit (it was created with the Menu Wizard and the pad contains all of the default edit functions).

The toolbar buttons contain code like:

SYS(1500,'_med_copy','_medit')

and function properly. I'm stumped as to why SYS(1500) and SKPPAD recognize the _medit pad but the POPUP() function doesn't. POPUP() recognizes my user defined pads by the names I've specified. What am I missing?

TIA
Dan
St. Petersburg, FL

"I started out with nothing and I still have most of it left"
Reply
Map
View

Click here to load this message in the networking platform