Author Topic: Selected item in listbox  (Read 2533 times)

MrTAToad

  • Guest
Selected item in listbox
« 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]

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10661
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: Selected item in listbox
« Reply #1 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.

MrTAToad

  • Guest
Re: Selected item in listbox
« Reply #2 on: 2010-Dec-06 »
Yes, using SCROLL works!