[Progress Communities] [Progress OpenEdge ABL] Forum Post: RE: Add a menu on right click on Browse

  • Thread starter Thread starter jquerijero
  • Start date Start date
Status
Not open for further replies.
J

jquerijero

Guest
If you are going for dynamic context-menu. 1. Move the code inside RIGHT-MOUSE0DOWN. 2. Mode self:popup-menu = lv-popupMenu after create menu lv-popupMenu. You might need to verify memory leak. Everytime you right-click, it will create menu handle. I'm not exactly sure if Progress will automatically delete the previous instance because it is out-of-scope or not. To be sure, I would declare the handles as global variables, and add the following code; IF VALID-HANDLE(lv-popupMenuItem) THEN DELETE OBJECT lv-popupMenuItem. IF VALID-HANDLE(lv-popupMenu) THEN DELETE OBJECT lv-popupMenu.

Continue reading...
 
Status
Not open for further replies.
Back
Top