GLBasic forum

Codesnippets => DD-GUI => Topic started by: MrTAToad on 2010-Dec-04

Title: Selected item in listbox
Post by: MrTAToad on 2010-Dec-04
What would be nice if a selected item in a listbox could be fully displayed when selected programmatically.

For example, currently selecting an item will highlight the line, but wont scroll the display so it is fully visible, like in the second picture

[attachment deleted by admin]
Title: Re: Selected item in listbox
Post by: Kitty Hello on 2010-Dec-06
when you ddgui_det(id$, "SELECT", number)?
I must set the id$, "SCROLL", number) then, too. Can you try if that works? I'll implement that for lists then.

Or I'll add an automation for it when you create a list.
Title: Re: Selected item in listbox
Post by: MrTAToad on 2010-Dec-06
Yes, using SCROLL works!