ListIconGadget() scrolls horizontally by click

Just starting out? Need help? Post your questions and find answers here.
hoerbie
Posts: 100
Joined: Sun Mar 17, 2019 5:51 pm
Location: DE/BY/MUC

ListIconGadget() scrolls horizontally by click

Post by hoerbie »

Hi,
not a big bug, but annoying from my point of view.

Code: Select all

id = OpenWindow(#PB_Any, 50, 50, 300, 300, "My App", #PB_Window_ScreenCentered)
lis = ListIconGadget(#PB_Any, 5, 5, 290, 340, "First", 100, #PB_ListIcon_FullRowSelect|#PB_ListIcon_GridLines)
AddGadgetColumn(lis, 1, "Second", 100)
AddGadgetColumn(lis, 2, "Three", 200)
AddGadgetColumn(lis, 3, "Four", 100)
AddGadgetItem(lis, 0, "one"+#LF$+"two"+#LF$+"three"+#LF$+"four")
AddGadgetItem(lis, 1, "one"+#LF$+"two"+#LF$+"three"+#LF$+"four")
AddGadgetItem(lis, 2, "one"+#LF$+"two"+#LF$+"three"+#LF$+"four")
When clicking on the third column with the text "three", the list is horizontally scrolled to make this cell fully visible.
Fred
Site Admin
Posts: 1506
Joined: Mon Feb 24, 2014 10:51 am

Re: ListIconGadget() scrolls horizontally by click

Post by Fred »

Seems to be the normal behaviour here, so I don't think it needs to be fixed.
Post Reply