Einzelnen Beitrag anzeigen

thomas2009
(Gast)

n/a Beiträge
 
#1

Problem beim Erstellen von TImage in ScrollBox

  Alt 13. Mär 2011, 22:47
Hi
ich weiß nicht woran es liegt, dass der Code nicht richtig funktioniert, wenn die ScrollBox-Position nicht 0 ist !
Delphi-Quellcode:
with TImage.Create(self) do begin
     Parent := ScrollBox1;
    Width := 250;
     Height := 250;
     Left := 10;
    Top := 50;// nur wenn ScrollBox1.Pos:=0; sonst kommt tiefer !
Danke! Problem gelöst :
Top := 50 - ScrollBoxSource.VertScrollBar.Position;

Geändert von thomas2009 (13. Mär 2011 um 23:03 Uhr)
  Mit Zitat antworten Zitat