bugGNU Octave - Bugs: bug #67083, Uicontextmenu of a uitable only...

 
 

bug #67083: Uicontextmenu of a uitable only accessible in table body if table disabled

Submitter:  None
Submitted:  Mon 05 May 2025 08:38:41 AM UTC
   
 
Category:  Plotting with OpenGL Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Matlab Compatibility
Status:  Confirmed Assigned to:  None
Originator Name:  Originator Email:  -email is unavailable-
Open/Closed:  * Open Release:  * 10.1.0
Operating System:  * Any Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Post a Comment

Add a New Comment Rich Markup
   

Discussion

Thu 29 May 2025 11:51:45 PM UTC, comment #2: 

It turns out that something odd is going on.  If you click in the very upper left corner of the uitable, something that is neither a row, column, or table cell which can also accept mouse clicks, then the context menu is displayed.  It seems probable that these 3 objects are intercepting the Right Click and then not passing it on.

Rik <rik5>
Group administrator
Wed 28 May 2025 11:59:27 PM UTC, comment #1: 

Confirmed.  I tried creating a button with uicontrol and assigning it a context menu and this worked.  This is probably a deficiency of just the uitable object.

Rik <rik5>
Group administrator
Mon 05 May 2025 08:38:41 AM UTC, original submission:  

Hi, while trying to implement a contextmenu of a table, I noticed that there's a difference between Matlab and Octave. In Matlab, the following code generates a contextmenu that is accessible in the table body (where columns/rows are), in Octave that only shows up when the whole table is disabled.


f = figure;
t = uitable('data', magic(4));
m = uicontextmenu(f);
o1 = uimenu ('parent', m, 'label', 'option1', 'callback', 'disp("option1")');
set(f, 'ContextMenu', m)
set(t, 'ContextMenu', m)


Anonymous

 

Attached Files

This item currently has no attached files.

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

Attach Files:
   
   
Comment:
   

 

Dependencies

This item does not depend on any other items.

No items depend on this one.

 

Mail Notification Carbon-Copy List

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

    Votes

    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.

     

    History

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2025-05-28 rik5 StatusNone Confirmed

    Back to the top

    Powered by Savane 3.16-1b88.
    Corresponding source code