FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Groups support in ListView
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Groups support in ListView
Posted: Wed Apr 25, 2012 06:21 PM
Groups support in ListView: (New in FWH 12.04)



Code (fw): Select all Collapse
function BuildListView( oListView, oImageList )

   oListView:SetImageList( oImageList )
   oListView:EnableGroupView()

   oListView:InsertGroup( "Items 1" )
   oListView:InsertGroup( "Items 2" )
   oListView:InsertGroup( "Items 3" )
   
   oListView:InsertItem( 0, "Console app", 0 ) // nImageIndex, prompt, nGroup
   
   oListView:InsertItem( 1, "Form based app", 1 )
   oListView:InsertItem( 1, "Form based dll", 1 )
   oListView:InsertItem( 2, "Another", 1 )
   
   oListView:InsertItem( 2, "Library", 2 )

return nil
regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion