Link to home
Start Free TrialLog in
Avatar of Stefaan
Stefaan

asked on

For M. Lischke : TreeNT Question

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
Avatar of Lischke
Lischke

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
Avatar of Stefaan

ASKER

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
ASKER CERTIFIED SOLUTION
Avatar of Lischke
Lischke

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Stefaan

ASKER

Found it ;-)
Avatar of Stefaan

ASKER

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

Keep up the good work.


Stefaan