ListIcon gadget column width

Just starting out? Need help? Post your questions and find answers here.
Leonhardt
Posts: 20
Joined: Wed Feb 26, 2014 9:41 am

ListIcon gadget column width

Post by Leonhardt »

hello,why the listicon gadget column width is'nt as my expection?
both button and listicon width are 100.
my PC:
XP sp3 SB2.0 beta10

Code: Select all

If OpenWindow(0, 100, 100, 800, 600, "ListIcon Example", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
   ListIconGadget(0, 5, 5, 600, 300, "Name", 100, #PB_ListIcon_FullRowSelect | #PB_ListIcon_AlwaysShowSelection)
   AddGadgetColumn(0, 1, "Aa", 100)
   AddGadgetColumn(0, 2, "Ab", 100)
   AddGadgetColumn(0, 3, "Ac", 100)
   AddGadgetItem(0, -1, "Harry Rannit"+Chr(10)+"12 Parliament Way, Battle Street, By the Bay")
   AddGadgetItem(0, -1, "Ginger Brokeit"+Chr(10)+"130 SpiderBasic Road, BigTown, CodeCity")
   ButtonGadget(1,5,200,100,50,"ok")
 EndIf