The selection jumps to an item, where the content of the first column starts with „a“ or with „b“, respectively.
(tested with PB 6.20 on Windows 11)
Maybe it's worth documenting this behaviour?
Code: Select all
If OpenWindow(0, 100, 100, 300, 130, "ListIcon demo", #PB_Window_SystemMenu | #PB_Window_ScreenCentered) = 0
MessageRequester("Fatal error", "Can't open main window.")
End
EndIf
ListIconGadget(0, 5, 5, 280, 110, "Name", 100, #PB_ListIcon_FullRowSelect)
AddGadgetColumn(0, 1, "Address", 170)
AddGadgetItem(0, -1, "ax" + #LF$ + "Here")
AddGadgetItem(0, -1, "bx" + #LF$ + "There")
AddGadgetItem(0, -1, "ay" + #LF$ + "By the Bay")
AddGadgetItem(0, -1, "by" + #LF$ + "CodeCity")
SetActiveGadget(0)
SetGadgetState(0, 0)
Repeat
event = WaitWindowEvent()
Until event = #PB_Event_CloseWindow