madam mar
asked on
Virtuailstring tree draw something inside column
how do i draw an image inside a column ? as example inside coulmn 2 ?
Are we missing an image/attachment?
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.
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
init of the treeview is called when a node becomes visible.
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
lol, Mike's treeview doesn't work well with onPaint ...
you'll find out eventually
you'll find out eventually
ASKER
i havn't faced any problem using on beforecellpaint or even after paint .
ASKER
its more reliable other comments are nothing but false suggestions .