Reposition Shape Center and Right always
Posted: Fri Jul 26, 2013 1:00 pm
hello,
I work with Delphi 2007 and vcl8.04
I draw a tree with multiple page (several of node) with Scroll and it 's ok.
I need to have an independent shape at always (center and right panel not tree), even if I move with the scroll.
How to reposition the middle after draw tree ?
I work with Delphi 2007 and vcl8.04
I draw a tree with multiple page (several of node) with Scroll and it 's ok.
I need to have an independent shape at always (center and right panel not tree), even if I move with the scroll.
How to reposition the middle after draw tree ?
Code: Select all
procedure TFrmAssistantEFC.CalculRePositionShapeLink;
begin
//V6001(MD) Reposition Shape center and Right of tree (always, even scroll)
if Assigned(ShapeCenter) then begin
ShapeCenter.Top :=round(Tree1.Height/2); // ??? no result
ShapeCenter.Left :=round(Tree1.Width-ShapeCenter.Width); // ??? result
end;
end;