Virtuailstring tree draw something inside column

madam mar
madam mar used Ask the Experts™
on
how do i draw an image inside a column ? as example inside coulmn 2 ?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Shaun VermaakTechnical Specialist
Awarded 2017
Distinguished Expert 2018

Commented:
Are we missing an image/attachment?

Author

Commented:
image attachment for what have you ever worked with delphi ?
Geert GOracle dba
Top Expert 2009

Commented:
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.
CompTIA Security+

Learn the essential functions of CompTIA Security+, which establishes the core knowledge required of any cybersecurity role and leads professionals into intermediate-level cybersecurity jobs.

Yes Column2 ! there can be column 1 or 0  or what ever .
how ever i have discovered how my self . it does not matter to use initNode event it can be drawing in after paint or even in on beforepaint ...
Geert GOracle dba
Top Expert 2009

Commented:
lol, Mike's treeview doesn't work well with onPaint ...
you'll find out eventually

Author

Commented:
i havn't faced any problem using on beforecellpaint or even after paint .

Author

Commented:
its more reliable other comments are nothing but false suggestions .

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial