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

 
 

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

Submitted by:  Francesco Potortì <pot>
Submitted on:  Tue 22 Sep 2015 04:02:45 PM UTC  
 
Category: LibrariesSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Feature Request
Status: FixedAssigned to: None
Originator Name: Open/Closed: Closed
Release: 4.0.0Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project Administrator
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>
Project 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>
Project 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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by mtmiller (Posted a comment)
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by pot (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 22 Sep 2015 07:23:15 PM UTCmtmillerStatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1