J
jquerijero
Guest
If you are going for dynamic context-menu. 1. Move the code inside RIGHT-MOUSE0DOWN. 2. Mode self
opup-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...
Continue reading...