[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Word wrap in Delphi 7 implementation of TTreeview

Posted on 2005-04-12
5
Medium Priority
?
1,033 Views
Last Modified: 2010-08-05
Is it at all possible to wrap the node text in the standard TTreeview packaged with Delphi 7? If not is there any alternative solution that is perferably free :P
0
Comment
Question by:scandiumza
  • 2
  • 2
5 Comments
 
LVL 27

Expert Comment

by:kretzschmar
ID: 13760699
hmm, i would guess, it should be possible, if you draw the tree byself (ownerdraw-property, ondrawitem-event,...)

but just a guess

meikl ; -)
0
 

Author Comment

by:scandiumza
ID: 13760947
I tried looking at the custom drawing events but they dont allow you to change the individual node heights, also it doesnt give a rect which would indicate where the node is being drawn on the treeviews canvas. The only things i've been able to change is the font appearance.

I found Michael's Virtual Treeview which is fantastic but is a bit too complex and would require alot of code changes in my project to implement and im pressed for time, its sad because the standard treeview can do everything I need except wrap the text :(
0
 
LVL 27

Expert Comment

by:kretzschmar
ID: 13760973
well, currently i have no delphi
(thats why i post just from head in the past)

maybe some other expert has a suggestion,
which fits your need

meikl ;-)
0
 
LVL 26

Accepted Solution

by:
Eddie Shipman earned 375 total points
ID: 13762317
0
 

Author Comment

by:scandiumza
ID: 13769906
Although it was not 100% percent working code offered it gave me the clues which I required toa achieve the desired results, thanks Eddie :)
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Suggested Courses
Course of the Month18 days, 12 hours left to enroll

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question