bugGNU Octave - Bugs: bug #44331, ResizeFcn property does not work...

 
 

bug #44331: ResizeFcn property does not work for uipanel/uicontrol

Submitter:  -X- <jsh>
Submitted:  Sat 21 Feb 2015 01:43:44 AM UTC
   
 
Category:  Plotting with OpenGL Severity:  1 - Wish
Priority:  5 - Normal Item Group:  Feature Request
Status:  Confirmed Assigned to:  None
Originator Name:  Open/Closed:  * Open
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 15 Oct 2016 01:28:37 PM UTC, comment #1: 

more specifically:

the resizefcn for the parent figure is called, not for the uipanel, for example:


function bug_resize2
     resize2 = @(obj, foo) fprintf(1, 'resize2: called from %s\n', get(obj, 'Tag'));
     fg = figure('Tag', 'figure', 'resizefcn', resize2);
     up = uipanel(fg, 'Tag', 'panel', 'resizefcn', resize2, 'Position', [0 0 1 1]);
end


produces on matlab 2015b


resize2: called from figure
resize2: called from panel
resize2: called from panel
resize2: called from figure
resize2: called from panel
resize2: called from panel
resize2: called from figure


on octave-4.2.0-rc2


resize2: called from figure
resize2: called from figure
resize2: called from figure


A.R. Burgers <arb>
Sat 21 Feb 2015 01:43:44 AM UTC, original submission:  

In the Qt Gui the ResizeFcn property/functions are not called.

Test:


hf  = figure;
hp  = uipanel( 'parent', hf, 'units', 'normalized', 'position', [0 0 1 1], 'backgroundcolor', 'r' );
cbf = @(obj,foo) set( obj, 'units', 'pixels', 'position', [0,0,100,100], 'backgroundcolor', 'b' );
set( hp, 'resizefcn', cbf )


-X- <jsh>

 

(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 arb (Posted a comment)
  • -email is unavailable- added by jsh (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
    2019-03-11 mtmiller CategoryGUI Plotting with OpenGL
        Severity3 - Normal 1 - Wish
        Item GroupNone Feature Request
        StatusNone Confirmed

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code