AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Programmierung allgemein Programmieren allgemein Problem beim Erstellen von TImage in ScrollBox
Thema durchsuchen
Ansicht
Themen-Optionen

Problem beim Erstellen von TImage in ScrollBox

Ein Thema von thomas2009 · begonnen am 13. Mär 2011 · letzter Beitrag vom 14. Mär 2011
Antwort Antwort
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
Benutzerbild von s.h.a.r.k
s.h.a.r.k

Registriert seit: 26. Mai 2004
3.159 Beiträge
 
#2

AW: Problem beim Erstellen von TImage in ScrollBox

  Alt 14. Mär 2011, 10:02
Beachte aber auch, dass du Left auch entsprechend angepasst werden muss, nicht nur Top
»Remember, the future maintainer is the person you should be writing code for, not the compiler.« (Nick Hodges)
  Mit Zitat antworten Zitat
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 09:56 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz