Page 2 of 2

Re: imagelist on tree

Posted: Mon Sep 30, 2024 7:02 am
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