Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Rigth Click Menu everywhere???
Message
From
28/07/2000 17:23:41
 
 
To
18/07/2000 05:13:34
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00393689
Message ID:
00398363
Views:
10
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.
Previous
Reply
Map
View

Click here to load this message in the networking platform