Page 1 of 1

List View Row Height

Posted: Thu Oct 13, 2011 6:24 pm
by michaeled314
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

Posted: Fri Oct 14, 2011 8:13 am
by srod

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

Re: List View Row Height

Posted: Tue Sep 20, 2016 10:35 am
by Kwai chang caine
Time passing too fast wrote:Thu Oct 13, 2011 5:24 pm
Never too late for give the first congratulation to a MASTER :mrgreen:
Thanks a lot for sharing 8)