Problem with horzscrollbar when node's name is too long

TeeTree VCL for Borland Delphi and C++ Builder.
Post Reply
bertrod
Advanced
Posts: 151
Joined: Wed Sep 07, 2005 4:00 am

Problem with horzscrollbar when node's name is too long

Post by bertrod » Wed Feb 22, 2006 4:32 pm

Hello,

When I have a quite long name in a TTreeNodeShape, and if I click on this node, the Horizontal Scrollbar automaticly moves to its extreme right, which is very annoying. Is there a way to force the horizontal scrollbar to stay on its left ?

I tried to change the horzscrollbar.position, but it is a read-only property.

tom
Advanced
Posts: 211
Joined: Mon Dec 01, 2003 5:00 am
Contact:

Post by tom » Tue Feb 28, 2006 12:33 am

Hi betrod,

you can the ScrollToView property to False (default = true).

as in

Code: Select all

Tree1.Selected.ScrollToView := False;
Regards,
tom

bertrod
Advanced
Posts: 151
Joined: Wed Sep 07, 2005 4:00 am

Post by bertrod » Tue Feb 28, 2006 2:16 pm

Thanks, it really helped me :)

Post Reply