Information générale
Catégorie:
The Mere Mortals Framework
>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...
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement