it looks that the procedure GetGadgetItemAttribute(GadgetNo, 0, #PB_ListIcon_ColumnWidth, i)
is not reliable.
But I can not find out on what it depends.
On my PCs it works correct.
On Demivecs PC with the same OS and the same SP it returns something but not what it should.
Please look here: http://www.purebasic.fr/english/viewtop ... 12&t=40457
This was also noticed in the german forum:
http://www.purebasic.fr/german/viewtopic.php?t=14364
But the windows API function seems to work always correct:
SendMessage_(GetWindow_(GadgetID(GID),#GW_CHILD),#HDM_GETITEMCOUNT,0,0)


Please check this