Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Rigth Click Menu everywhere???
Message
De
28/07/2000 17:23:41
 
 
À
18/07/2000 05:13:34
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00393689
Message ID:
00398363
Vues:
8
In addition to the other ideas, you could also call up the object hierarchy, until you hit the form's RightClick() - in the superclass form RightClick(), call your generic shortcut menu.
That way if you want a special menu on a particular form, it can be called from any object on the form. And if you want to override a particular control, you just put code in it's RightClick()
You'll have to put the code in all your superclasses except forms but it may be worth it.
note: This example ignores columns and pages
** super classes' RightClick()
LOCAL loParentObj
loParentObj = this.Parent
IF INLIST(UPPER(loParentObj.BaseClass),"COLUMN","PAGE")
  loParentObj = loParentObj.Parent
ENDIF
** make sure it's got one 
IF PEMSTATUS(loParentObj,"RightClick",5)
  loParentObj.RightClick()
ENDIF

** superclass form RightClick()
DO mainshortcut.mpr
Insanity: Doing the same thing over and over and expecting different results.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform