ListIconGadget column width errors

Just starting out? Need help? Post your questions and find answers here.
the.weavster
Posts: 220
Joined: Sat Mar 01, 2014 3:02 pm

ListIconGadget column width errors

Post 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
Fred
Site Admin
Posts: 1506
Joined: Mon Feb 24, 2014 10:51 am

Re: ListIconGadget column width errors

Post by Fred »

You need to use SetGadgetAttribute(). But yes, the columns always takes all the available spaces in SB.
Post Reply