Solved

For M. Lischke : TreeNT Question

Posted on 2000-05-17
5
190 Views
Last Modified: 2010-04-04
Hi Mike,

I tried to contact you by e-mail on your Hotmail Account, but apparently it always returns with Delivery Failed.

When I was searching for a good TreeView component I stumbled upon yours.  It seems to be quite good and right now I am testing a few things to see if I can use it.  Concidering the Treeview, I have a little Question.

I dropped a TreeNT on my form and coded some things in the AfterItemPaint do display some additional text in the current nodes ItemRect.

When the Treeview gets resized I noticed something wierd.  When the Treeview is made bigger (Width gets a higher value), the AfterItemPaint event gets fired correctly, but when the Treeview gets smaller (width gets a smaler value) it isn't called.  Is this logic ?

I am wondering because I am painting some additional text right next to the Nodes text and when resizing if the text doesn't fit in my Rect it is displayed with ellipsis at the end.  So when the rect gets smaller (eg when the treeview is made smaller) less text will fit in it.

One other question is concerning the FullNodeSelect option.  When this options is set to true, the ShowLines option is set to false and there is no way to set it to true.  Isn't it possible to have FullNodeSelect and ShowLines set to true ?

If you prefer me sending you an e-mail with my questions I'll do so, but apparently I wasn't able to send you a mail.

Well, I would really appreciate your input on this.

Thanks a lot in advance,


Stefaan
0
Comment
Question by:Stefaan
  • 3
  • 2
5 Comments
 
LVL 10

Expert Comment

by:Lischke
Comment Utility
Hi Stefaan,

I should have changed the readme and help files in the TreeNT package already. Sorry for the trouble you had sending me an email, but my hotmail account is already close since about a year. Meanwhile I have bought my own domain which includes of course also own eMail addresses. Currently you can reach me at public@lischke-online.de (see also my homepage at www.lischke-online.de for various usuful stuff).

To your questions:

Resizing: A window never gets a paint event when it is made smaller, because there's nothing invalidated in it. All what's invalid after making a window smaller is now hidden by other windows. For the special case that the content of a window is changed on resize you could capture the WM_SIZE message (cost some work, of course, but you can include it into TreeNT) to invalidate a part of the tree window when it is resized.

toFullRowSelect:
I don't remember *why* this was so, but I still know *that* it must be so. When full row selection is enabled then lines can't (shouldn't?) be shown. It is a limitation of the underlying ComCtrl tree window, not of TreeNT.

FYI: I'm currently writing a totally new tree implementation called virtual tree, which is nearly ready to be released. This one is pure VCL code and *much* better the any other tree I know of (including TreeNT). If you don't hesitate to work with a beta version (well, it's actually already version 1.5) then tell me and I send you a copy along with a small demo program. You should be aware, though, that there's currently no help for the control (other than what I can provide via eMail or E-E). Otherwise it is an amazing control (handles 1 million and more nodes, has got all the features the windows tree got built in, is much faster, includes multiple columns etc. etc.).

Ciao, Mike
0
 
LVL 3

Author Comment

by:Stefaan
Comment Utility
Hi Mike,

Thanks for your quick response.  And of course I am interestid in your Virtual Treeview, and I don't mind having to work with a beta version.

If you are willing to share it with me, you can always send it to me via e-mail : Stefaan_Lesage@peopleware.be and I'll put it in my test application to see what it can do ;-)

Best regards,


Stefaan
0
 
LVL 10

Accepted Solution

by:
Lischke earned 50 total points
Comment Utility
Look in you inbox :-)

Ciao, Mike
0
 
LVL 3

Author Comment

by:Stefaan
Comment Utility
Found it ;-)
0
 
LVL 3

Author Comment

by:Stefaan
Comment Utility
Thanks for your help ;-) I'll keep in touch if I find anything unusual concerning the Virtual Tree.

Keep up the good work.


Stefaan
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

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…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

743 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now