TeeTree and CenterInView
Posted: Wed Sep 07, 2011 1:07 am
Hi,
We have recently upgraded from Delphi6 to XE.
Strange TeeTree behaviour using CenterInView - the entire Tree moves to the center.
I have changed the property ZoomCentered:= True.
This now gives me the vertical behaviour I expect. The desired Node is now in the center of the Tree control display as expected.
Unfortunately horizontally, the entire Tree itself can move to the right, away from the left margin. I do not want the tree to move away from the left edge when using CenterInView, simply show the node in the center.
Any advice greatly appreciated.
Paul
We have recently upgraded from Delphi6 to XE.
Strange TeeTree behaviour using CenterInView - the entire Tree moves to the center.
I have changed the property ZoomCentered:= True.
This now gives me the vertical behaviour I expect. The desired Node is now in the center of the Tree control display as expected.
Unfortunately horizontally, the entire Tree itself can move to the right, away from the left margin. I do not want the tree to move away from the left edge when using CenterInView, simply show the node in the center.
Any advice greatly appreciated.
Paul