bugGNU Octave - Bugs: bug #45848, uicontrol listbox does not move...

 
 

bug #45848: uicontrol listbox does not move the list/scrollbar when a selection is made programatically

Submitter:  -X- <jsh>
Submitted:  Mon 31 Aug 2015 07:21:58 AM UTC
   
 
Category:  GUI Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  pantxo
Originator Name:  Open/Closed:  * Closed
Release:  * 4.0.0 Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 01 Sep 2015 05:24:07 PM UTC, comment #2: 

I have pushed a simple patch on the default branch:

http://hg.savannah.gnu.org/hgweb/octave/rev/7d8ec197b08b

Closing report.

Pantxo Diribarne <pantxo>
Group Member
Tue 01 Sep 2015 07:02:58 AM UTC, comment #1: 

Thanks for the report. I can confirm the bug and I have a one liner patch that I will push soon.

Pantxo Diribarne <pantxo>
Group Member
Mon 31 Aug 2015 07:21:58 AM UTC, original submission:  

In Matlab an uicontrol listbox always tries to show the selected entry. If a listbox is made and a value is selected like in the example, the bottom of the visible listbox will show the selected entry


h = uicontrol('style','listbox','string','','units','normalized','position',[0 0 1 1]);
set( h, 'string', strread(num2str(1:100),'%s'), 'value', 50 )


If an earlier selection is made, the visible area of the listbox will move to show the top entry selected

set( h, 'value', 5 )


It seems it is not programatically possible yet to move the listbox visible area.

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

    Date Changed by Updated Field Previous Value => Replaced by
    2015-09-01 pantxo StatusConfirmed Fixed
        Open/ClosedOpen Closed
    2015-09-01 pantxo StatusNone Confirmed
    2015-09-01 pantxo Item GroupNone Incorrect Result
        Assigned toNone pantxo

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code