Solved

For M. Lischke : TreeNT Question

Posted on 2000-05-17
5
191 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
ID: 2816845
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
ID: 2817169
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
ID: 2817695
Look in you inbox :-)

Ciao, Mike
0
 
LVL 3

Author Comment

by:Stefaan
ID: 2820075
Found it ;-)
0
 
LVL 3

Author Comment

by:Stefaan
ID: 2820766
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Delphi with SQL Natvie Client 15 86
Intraweb download file link ? 1 110
Reconfigure Delphi Install? 2 47
DBGrid or StringGrid ? 6 72
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
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…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

863 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

23 Experts available now in Live!

Get 1:1 Help Now