Trouble with ListIconGadget

Just starting out? Need help? Post your questions and find answers here.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by UserBob.

I am having trouble using the ListIconGadget. It does not display the large icon correctly, it looks like it just displays the upper left quarter.

I have the code:
LoadImage(0, "Data\icon1.bmp")
LoadImage(1, "Data\icon2.bmp")
If OpenWindow(0, 100, 120, #WindowWidth, #WindowHeight, 0 , "Whatever")
If CreateGadgetList(WindowID())
ListIconGadget0, 10, 10, 265, 200, "Item", 131)
ChangeListIconGadgetDisplay(0, 0 | 3)

AddListIconGadgetItem(0, 0, "Item1", UseImage(0))
AddListIconGadgetItem(0, 1, "Item2", UseImage(1))
....

I tried different combos for the ChangeListIconGadetDisplay, but nothing seems to work. I want to display the whole 32x32 bit bmp file.
Anysuggestions?
BG