Page 1 of 1

Modify the height

Posted: Sun Oct 16, 2005 5:40 pm
by Polo
Hi !
How can I modify the height of an item of a ListIconGadget ?

Posted: Sun Oct 16, 2005 9:08 pm
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.