Link to home
Create AccountLog in
Avatar of madam mar
madam mar

asked on

Virtuailstring tree draw something inside column

how do i draw an image inside a column ? as example inside coulmn 2 ?
Avatar of Shaun Vermaak
Shaun Vermaak
Flag of Australia image

Are we missing an image/attachment?
Avatar of madam mar
madam mar

ASKER

image attachment for what have you ever worked with delphi ?
column 2 ???

did you check the demo of the drawtree ?
https://github.com/Virtual-TreeView/Virtual-TreeView/blob/master/Demos/Advanced/DrawTreeDemo.pas

in the init of the node
you need to assign the image in the data object
and also draw it

see procedure TDrawTreeForm.VDT1InitNode in the demo on how to do that

init of the treeview is called when a node becomes visible.
ASKER CERTIFIED SOLUTION
Avatar of madam mar
madam mar

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
lol, Mike's treeview doesn't work well with onPaint ...
you'll find out eventually
i havn't faced any problem using on beforecellpaint or even after paint .
its more reliable other comments are nothing but false suggestions .