imagelist on tree

Re: imagelist on tree

Postby Silvio.Falconi » Mon Sep 30, 2024 7:02 am

with

Code: Select all  Expand view
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
User avatar
Silvio.Falconi
 
Posts: 7061
Joined: Thu Oct 18, 2012 7:17 pm

Previous

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 35 guests