Page 1 of 1

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)