Page 1 of 1

Problem with horzscrollbar when node's name is too long

Posted: Wed Feb 22, 2006 4:32 pm
by 9343260
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.

Posted: Tue Feb 28, 2006 12:33 am
by Tom
Hi betrod,

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

as in

Code: Select all

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

Posted: Tue Feb 28, 2006 2:16 pm
by 9343260
Thanks, it really helped me :)