bugGNU Octave - Bugs: bug #46026, Menu dialog generated by menu() is...

 
 

bug #46026: Menu dialog generated by menu() is primitive

Submitter:  Francesco Potortì <pot>
Submitted:  Tue 22 Sep 2015 04:02:45 PM UTC
   
 
Category:  Libraries Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Feature Request
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 4.0.0 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 23 Sep 2015 03:42:58 PM UTC, comment #4: 

Thanks. It's strange, however, that Rik could not reproduce problems #1 and #2.

Francesco Potortì <pot>
Tue 22 Sep 2015 07:22:57 PM UTC, comment #3: 

The menu function is really a thin wrapper around listdlg. These issues are all relevant to listdlg as well. I fixed what I think are the behavior compatibility issues on the default branch:

1. Enter key submits selected item
2. Double click with mouse submits selected item
3. The "Select All" button is not shown in single-selection mode

So it works for me without a mouse now, you can arrow up and down to your choice, pressing Escape is the same as Cancel, and Enter is the same as Ok.

Note that menu() only operates in single-selection mode. If you call listdlg() instead, you have the choice of single or multiple selections.

http://hg.savannah.gnu.org/hgweb/octave/rev/dd327c0909b0

Any other problems?

Mike Miller <mtmiller>
Group Member
Tue 22 Sep 2015 05:31:05 PM UTC, comment #2: 

Another limitation is that it isn't possible to select multiple options.
If that were intentional, the "Select all" button had better disappear completely.

Philip Nienhuis <philipnienhuis>
Group Member
Tue 22 Sep 2015 04:47:48 PM UTC, comment #1: 

menu() isn't recommended for new code.  See Matlab's own documentation (http://www.mathworks.com/help/matlab/ref/menu.html).

That said, the Qt generated menu works for me with the keyboard (issue #1) and with single or double-clicks of the mouse (issue #2).  The only issue I see is that the "select all" button is generated, but grayed out.

Rik <rik5>
Group administrator
Tue 22 Sep 2015 04:02:45 PM UTC, original submission:  

The menu dialog generated by menu() has some defects:

1- it cannot be used without a mouse
2- it does not allow selection with double-click
3- it shows a useless "select all" button

Francesco Potortì <pot>

 

(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

 

Carbon-Copy List
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by pot (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 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-09-22 mtmiller StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code