Page 1 of 1

ListIconGadget column width errors

Posted: Tue Dec 08, 2020 11:15 am
by the.weavster
ListIconGadget column widths can't be reset

Code: Select all

OpenWindow(0, 10, 10, 500, 500, "Window 1", #PB_Window_ScreenCentered)
ListIconGadget(1, 10, 10, 480, 480, "Col 1", 150, #PB_ListIcon_GridLines)
SetGadgetItemAttribute(1, 0, #PB_ListIcon_ColumnWidth, 250)
Uncaught TypeError: x[d] is undefined

Re: ListIconGadget column width errors

Posted: Wed Oct 12, 2022 3:03 pm
by Fred
You need to use SetGadgetAttribute(). But yes, the columns always takes all the available spaces in SB.