Codesnippets > DD-GUI

Selected item in listbox

(1/1)

MrTAToad:
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]

Kitty Hello:
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:
Yes, using SCROLL works!

Navigation

[0] Message Index

Go to full version