Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Determine Existance of VFP System Pad
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de menu & Menus
Titre:
Determine Existance of VFP System Pad
Divers
Thread ID:
00189666
Message ID:
00189666
Vues:
58
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"
Répondre
Fil
Voir

Click here to load this message in the networking platform