Modify the height

Just starting out? Need help? Post your questions and find answers here.
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Modify the height

Post by Polo »

Hi !
How can I modify the height of an item of a ListIconGadget ?
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

I don't know about single items, although I'd be interested to know the answer myself. Setting the font is of the course the most direct way of changing the height of all rows together.

Alternatively, I found the following tip in the Powerbasic forums posted by Edwin Knoppert:

Code: Select all

lRowHeight = 18
hImg = ImageList_Create_(1, lRowHeight, #ILC_COLORDDB, 0, 0)
sendmessage_(gadgetid(1), #LVM_SETIMAGELIST, #LVSIL_SMALL,hImg)
Here he simply sets up an empty image list of the required height etc. Again, it effects every row.
I may look like a mule, but I'm not a complete ass.
Post Reply