[SOLVED] Move to line position in a listiconGadget?
Posted: Sat Sep 20, 2025 10:43 pm
I found this and works great for for EditorGadget:
viewtopic.php?p=441542#p441542
and tried to adapt it to ListIconGadget but could not make it work. How do I jump to a particlar line? Here I just want to jump to end of the list:
Would be really nice to know how to jump to any line too.
Thanks!!
viewtopic.php?p=441542#p441542
and tried to adapt it to ListIconGadget but could not make it work. How do I jump to a particlar line? Here I just want to jump to end of the list:
Code: Select all
If OpenWindow(0, 0, 0, 230, 120, "Eventtypes example...", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
ListIconGadget(1, 10, 10, 150, 100, "ListIcon", 140, #PB_ListIcon_GridLines)
For a = 1 To 14
AddGadgetItem(1, -1, "Line "+Str(a))
Next
;How do I jump to line #14, end of the list ?
Repeat
Event = WaitWindowEvent()
Until Event = #PB_Event_CloseWindow
EndIf
Thanks!!