Virtuailstring tree draw something inside column

how do i draw an image inside a column ? as example inside coulmn 2 ?
madam marAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Shaun VermaakTechnical Specialist/DeveloperCommented:
Are we missing an image/attachment?
0
madam marAuthor Commented:
image attachment for what have you ever worked with delphi ?
0
Geert GOracle dbaCommented:
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.
0
Cloud Class® Course: Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

madam marAuthor Commented:
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 ...
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Geert GOracle dbaCommented:
lol, Mike's treeview doesn't work well with onPaint ...
you'll find out eventually
0
madam marAuthor Commented:
i havn't faced any problem using on beforecellpaint or even after paint .
0
madam marAuthor Commented:
its more reliable other comments are nothing but false suggestions .
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Delphi

From novice to tech pro — start learning today.