imagelist on tree

User avatar
Silvio.Falconi
Posts: 7104
Joined: Thu Oct 18, 2012 7:17 pm

Re: imagelist on tree

Post by Silvio.Falconi »

with

Code: Select all | Expand

 oImageList := TImageList():New()
   oImageList:Add( TBitmap():Define( "open",, oBar2 ), ;        // nImage == 0 (default if not specified)
                   TBitmap():Define( "close",, oBar2 ) )


   @ 15, 1 TREEVIEW oTree OF oBar2 SIZE 190, 180
         oTree:SetImageList( oImageList )
Now run !!

Image

but the second level must have arrow.bmp and not the same as first
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Post Reply