bugGNU Octave - Bugs: bug #59951, Current Figure (gcf) not updated...

 
 

bug #59951: Current Figure (gcf) not updated when uicontrol "pushbutton" clicked

Submitted by:  Arnaud Delorme <arnodelorme>
Submitted on:  Wed 27 Jan 2021 03:24:26 AM UTC  
 
Category:  GUI Severity:  3 - Normal
Priority:  3 - Low Item Group:  Incorrect Result
Status:  Confirmed Assigned to:  None
Originator Name:  Arnaud Delorme Open/Closed:  Open
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.

 

Wed 27 Jan 2021 04:45:49 PM UTC, comment #3: 

The figure menu and toolbar are implemented with uimenu and uitoolbar objects and have the same sort of issue.  When they capture a click no other graphics object processes it.

Changing this is likely to be a project.

Rik <rik5>
Project Administrator
Wed 27 Jan 2021 04:51:54 AM UTC, comment #2: 

BTW -- the same happens with gui menu items -- you can try clicking on "grid" button e.g.

Dmitri.
--

Dmitri A. Sergatskov <dasergatskov>
Wed 27 Jan 2021 04:44:01 AM UTC, comment #1: 

I agree that this is incorrect.  The issue is probably that the mouse click is detected and then successfully processed by the pushbutton.  The 'click' is never cascaded to underlying objects which in this case would be the Canvas object for figure 2.  It is that click which updates the current figure property in the root object.

Rik <rik5>
Project Administrator
Wed 27 Jan 2021 03:24:26 AM UTC, original submission:  

1. Create 2 figures and a button on the second figure
figure; figure;
uicontrol('style', 'pushbutton', 'string', 'text');

2. Select first figure and type
gcf -> 1 (which is as expected)

3. Press button on second figure and type gcf
gcf -> 1 (should be 2)

Note that Matlab correctly assign gcf to the second figure

Arnaud Delorme <arnodelorme>

 

(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 dasergatskov (Posted a comment)
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by arnodelorme (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 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-01-27 rik5 Release6.1.0 => dev
        Operating SystemMicrosoft Windows => Any
        SummaryFocus not transfered to current figure when button pushed => Current Figure (gcf) not updated when uicontrol "pushbutton" clicked
    2021-01-27 rik5 Priority5 - Normal => 3 - Low
        StatusNone => Confirmed

    Back to the top


    Powered by Savane 3.5