Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Menu pad with no popup menu not working
Message
From
26/01/2001 16:13:05
 
 
To
25/01/2001 14:31:44
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00468685
Message ID:
00469227
Views:
8
>I am trying to modify the mainmenu in amenus.vcx to include an EXIT pad with no popup. I subclassed cpad::cmenu.vcx and called it exitpad. I set the lnopopup property to .T. as per the DevGuide, and included it in the loadchildren method of mainmenu. The "exit" pad is visible but doesn't appear to respond to click or dblclick events. I've added a 'set step on' command to each of these methods with no luck. Any of you MM users out there have a menu pad working with no popup menu?
>TIA

I came across this going through the docs as well. I had sent Kevin a fix, but unfortunately I did not save it. Kevin talked me out of it, saying that having a menu pad with no drop down wasn't very "windowish".

If you really want to fix it, I recall it's in the cpad::define method. The section :

IF NOT This.lNoPopup
lcOnPad = "ON PAD " + this.Name + ;
" OF " + this.cMenu + ;
" ACTIVATE POPUP o" + this.cPopup
&lcOnPad
ENDIF

Has to be changed. lcOnPad needs to DOFORM() I think, instead of ACTIVATE POPUP...
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform