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

 
 

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

Submitted by:  Guillaume <gyom>
Submitted on:  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

Add a New Comment (Rich Markup)
   

You are not logged in

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

 

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>
Project 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>
Project 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>
Project 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)
  •  

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

    Only project 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.6