bugGNU Octave - Bugs: bug #44763, Reset submenus of a uicontextmenu


bug #44763: Reset submenus of a uicontextmenu

Submitter:  Guillaume <gyom>
Submitted:  Tue 07 Apr 2015 02:58:27 PM UTC
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Confirmed Assigned to:  None
Originator Name:  Guillaume Open/Closed:  * Open
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup

Tue 05 Feb 2019 08:00:34 PM UTC, comment #3: 

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.

Rik <rik5>
Group administrator
Fri 23 Dec 2016 10:34:12 PM UTC, comment #2: 

This issue is still present in Octave 4.2.0.

Hartmut <hardy>
Sun 03 May 2015 10:47:52 PM UTC, comment #1: 

Confirmed, the context menu still thinks it has a submenu, although no menu shows up when it is selected and/or clicked.

Mike Miller <mtmiller>
Group Member
Tue 07 Apr 2015 02:58:27 PM UTC, original submission:  

After removing a submenu from a uicontextmenu, there are still  some remaining effects from that submenu:

  • the context menu still displays 'Menu 1  >' instead of 'Menu 1'
  • the uimenu callback is executed when the mouse pointer is over the label instead of only when a click is performed.

U=uimenu('parent',H,'Label','Menu 1','callback','disp(''clbk'')');

Guillaume <gyom>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by hardy (Posted a comment)
  • -email is unavailable- added by gyom (Submitted the item)

    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 group members can vote.


    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-02-05 mtmiller Carbon-CopyRemoved 80942 -
    2015-05-03 mtmiller CategoryNone Octave Function
        Item GroupNone Incorrect Result
        StatusNone Confirmed

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code