BobyIsProgress
Member
Hello,
A question, I made popup menu in Browse widget:
I code it that way in the RIGHT-MOUSE-DOWN trigger:
I assumed that after leaving the trigger the handle myMenu doesn't exist.
But because I put it in the SELFOPUP-MENU handle he is still available.
So do I need to delete the handle myMenu before created it again ?
Best Regard,
BobyIsProgress
A question, I made popup menu in Browse widget:
I code it that way in the RIGHT-MOUSE-DOWN trigger:
Code:
DEFINE VARIABLE myMenu AS HANDLE NO-UNDO.
DEFINE VARIABLE myItem AS HANDLE NO-UNDO.
IF AVAILABLE TT1 THEN DO: /* Where TT1 is a temp-table in the browse open-query */
CREATE MENU myMenu ASSIGN
FONT = 3
POPUP-ONLY = TRUE.
CREATE MENU-ITEM myItem ASSIGN
SUBTYPE = 'normal':U
PARENT = myMenu
LABEL = "INFO"
TRIGGERS:
MESSAGE "HELLO" .
END TRIGGERS.
SELF:POPUP-MENU = myMenu .
END.
I assumed that after leaving the trigger the handle myMenu doesn't exist.
But because I put it in the SELFOPUP-MENU handle he is still available.
So do I need to delete the handle myMenu before created it again ?
Best Regard,
BobyIsProgress