bugGNU Octave - Bugs: bug #55085, sizechangedfcn not implemented for...

 
 

bug #55085: sizechangedfcn not implemented for uibuttongroup, uipanel

Submitter:  Rik <rik5>
Submitted:  Sat 24 Nov 2018 05:55:04 AM UTC
   
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Feature Request
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 10 Dec 2018 10:39:34 PM UTC, comment #2: 

The patch looks good.  I checked in your changeset here (https://hg.savannah.gnu.org/hgweb/octave/rev/4f1b3651fa5f).

I don't think we need to add a warning, but I did document the "resizefcn" property as being deprecated.  I also added documentation for the "sizechangedfcn" in the same cset.  See https://hg.savannah.gnu.org/hgweb/octave/rev/a5094f65012c.

Rik <rik5>
Group administrator
Sat 08 Dec 2018 03:31:24 PM UTC, comment #1: 

The attached patch adds support for the "sizechangedfcn" property to uipanel and uibuttongroup.

You were right Rik: It was mainly copying the existing code.

I also added support for the "resizefcn" property. Albeit it being deprecated in Matlab since many years, it is still supported afaik.
Removing it from Octave might raise compatibility issues.

Should we add a warning to encourage users to switch to using the "sizechangedfcn" property?

(file #45604)

Markus Mützel <mmuetzel>
Group administrator
Sat 24 Nov 2018 05:55:04 AM UTC, original submission:  

The three container UI objects figure, uibuttongroup, and uipanel have a "sizechangedfcn" property which holds a handle to a callback function.  The property has been implemented for figure objects (see graphics.cc), but not for uibuttongroup and uipanel.

I don't believe it would be particularly hard to add a set_position function for the other two objects which would update the position when changed, and then check for a callback function to execute.  As I noted, there is already example code that could be taken from figure::properties::set_position.





Rik <rik5>
Group administrator

 

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

Attach Files:
   
   
Comment:
   

Attached Files

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by mmuetzel (Updated the item)
  • -email is unavailable- added by rik5 (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 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-12-10 rik5 StatusPatch Submitted Fixed
        Open/ClosedOpen Closed
    2018-12-08 mmuetzel StatusNone Patch Submitted
    2018-12-08 mmuetzel Attached File- Added bug55085_uipanel_uibuttongroup_sizechangedfcn.patch, #45604

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code