List View Row Height
-
- Enthusiast
- Posts: 340
- Joined: Tue Apr 24, 2007 11:14 pm
List View Row Height
In essence I have a list icon gadget, but it is considered to be a ListView by the win API.... Anyways, when I have details mode set, I am finding it difficult to change the row height to accommodate for an image, but I cannot find anywhere in the Win API how to change a row's height..
Re: List View Row Height
Code: Select all
If OpenWindow(0, 100, 100, 300, 300, "ListIcon Example", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
ListIconGadget(0, 5, 5, 290, 290, "Name", 100, #PB_ListIcon_FullRowSelect|#PB_ListIcon_AlwaysShowSelection|#PB_ListIcon_GridLines)
;Set row height.
hImg = ImageList_Create_(1, 50, #ILC_COLORDDB, 0, 0)
SendMessage_(GadgetID(0), #LVM_SETIMAGELIST, #LVSIL_SMALL,hImg)
ImageList_Destroy_(hImg)
AddGadgetColumn(0, 1, "Address", 250)
AddGadgetItem(0, -1, "Harry Rannit"+Chr(10)+"12 Parliament Way, Battle Street, By the Bay")
AddGadgetItem(0, -1, "Ginger Brokeit"+Chr(10)+"130 PureBasic Road, BigTown, CodeCity")
Repeat
Event = WaitWindowEvent()
Until Event = #PB_Event_CloseWindow
EndIf
I may look like a mule, but I'm not a complete ass.
- Kwai chang caine
- Always Here
- Posts: 5494
- Joined: Sun Nov 05, 2006 11:42 pm
- Location: Lyon - France
Re: List View Row Height
Never too late for give the first congratulation to a MASTERTime passing too fast wrote:Thu Oct 13, 2011 5:24 pm

Thanks a lot for sharing


Not a destination