Add a New Comment (Rich Markup)
This is still present on the development branch (6.0). I suspect the problem is that calling uimenu() to add the submenu invokes extra code that checks whether there is an existing menu, etc., and makes changes to the menu. Then, when you delete the submenu, it just deletes the actual graphics object. There probably needs to be destructor code written for the submenu that is called automatically by delete() to freshen the parent uimenu.
This issue is still present in Octave 4.2.0.
Confirmed, the context menu still thinks it has a submenu, although no menu shows up when it is selected and/or clicked.
After removing a submenu from a uicontextmenu, there are still some remaining effects from that submenu:
F=figure; H=uicontextmenu(F); set(F,'uicontextmenu',H); U=uimenu('parent',H,'Label','Menu 1','callback','disp(''clbk'')'); uimenu('parent',U,'Label','temporary'); delete(get(U,'children'))
(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)
Attach Files: Comment:
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Only project members can vote.
Please enter the title of George Orwell's famous dystopian book (it's a date):
Follow 4 latest changes.
Copyright © 2023 Free Software Foundation, Inc. Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved. The Levitating, Meditating, Flute-playing Gnu logo is a GNU GPL'ed image provided by the Nevrax Design Team. Source Code
Powered by Savane 3.11