Solved

For M. Lischke : TreeNT Question

Posted on 2000-05-17
5
197 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

734 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