bugGNU Octave - Bugs: bug #44690, Callback execution of an 'edit'...

 
 

bug #44690: Callback execution of an 'edit' uicontrol

Submitter:  Guillaume <gyom>
Submitted:  Wed 01 Apr 2015 04:57:42 PM UTC
   
 
Category:  Plotting Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Matlab Compatibility
Status:  Fixed Assigned to:  lostbard
Originator Name:  Guillaume Open/Closed:  * Closed
Release:  * dev Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 02 Apr 2015 11:25:38 AM UTC, comment #3: 

Works great, many thanks! You can close the report.

Guillaume <gyom>
Wed 01 Apr 2015 08:01:55 PM UTC, comment #2: 
John Donoghue <lostbard>
Group Member
Wed 01 Apr 2015 07:27:54 PM UTC, comment #1: 

Matlab also appears not to do the callback if it is an empty string in the text box, whereas in octave, it it has changed to an empty textbox, it will post once for the empty string.

John Donoghue <lostbard>
Group Member
Wed 01 Apr 2015 04:57:42 PM UTC, original submission:  

In the code below, the callback is executed only after changing the content of the String and pressing Return, ie the callback will not be executed by just clicking in the box and pressing Return, or the second time you press Return after having modified the content of the box. In contrast, MATLAB executes the callback whenever Return is pressed while the uicontrol is the current object.


F = figure ();
H = uicontrol(F, "Style","edit",...
      "String","Default",...
      "callback","disp(get(gcbo,'String'))");


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 lostbard (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 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-04-02 lostbard StatusReady For Test Fixed
        Open/ClosedOpen Closed
    2015-04-01 lostbard Item GroupNone Matlab Compatibility
        StatusNone Ready For Test
        Assigned toNone lostbard

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code