bugGNU Octave - Bugs: bug #60870, Label property of a uimenu not...

 
 

bug #60870: Label property of a uimenu not recommended and replaced by Text

Submitter:  Guillaume <gyom>
Submitted:  Thu 01 Jul 2021 04:02:43 PM UTC
   
 
Category:  GUI Severity:  3 - Normal
Priority:  3 - Low Item Group:  Matlab Compatibility
Status:  Confirmed Assigned to:  None
Originator Name:  Guillaume Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 22 Jul 2021 08:47:39 PM UTC, comment #3: 

Turns out this wasn't particularly hard to implement.  I added support for "Text" in this changeset: http://hg.savannah.gnu.org/hgweb/octave/rev/3eca54836f97.

Marking as fixed and closing report.

Rik <rik5>
Group administrator
Sat 03 Jul 2021 09:40:54 PM UTC, comment #2: 

Just did some checking and internally 'Text' and 'Label' seem to be identical.  If you set either one, the other automatically updates to the new value.

Rik <rik5>
Group administrator
Thu 01 Jul 2021 08:36:57 PM UTC, comment #1: 

Matlab is always subtly changing their APIs.  I don't think this would be that difficult to implement, but it isn't high priority as Matlab will still accept "Label" as a property so code can still run on either interpreter.

Rik <rik5>
Group administrator
Thu 01 Jul 2021 04:02:43 PM UTC, original submission:  

According to the Matlab documentation, the Label property of a uimenu is not recommended and Text should be used:
https://www.mathworks.com/help/matlab/ref/matlab.ui.container.menu-properties.html#d123e1419710

Octave only recognises Label, and Text returns an error:


octave> H = figure (); uimenu (H, "Text", "A");
error: __go_uimenu__: set: unknown uimenu property Text, unable to create graphics handle
error: called from
    uimenu at line 94 column 7


while Matlab accepts both.

Guillaume <gyom>

 

(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 rik5 (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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-07-22 rik5 Open/ClosedOpen Closed
    2021-07-01 rik5 Priority5 - Normal 3 - Low
        StatusNone Confirmed

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code