Autor Beitrag
Cookie007
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 96

win2000 / Xp / Linux9.3
Delphi7
BeitragVerfasst: Di 03.01.06 16:31 
Hallo Leute,
versuche folgendes
Ich habe 2 labels beim klick auf L1 soll L2 um 20 "EINHEITEN" nach oben versetzt werden

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
procedure TForm1.Label2Click(Sender: TObject);
begin
label1.Width := 130 // start war 110
end;

end.


Moderiert von user profile iconChristian S.: Delphi-Tag repariert

_________________
Mein System : A64 2400 Clawhammer, 1534 MB Ram, 200GB Festplatte, GeForce 6600 (Gigabyte)
Warum so ein langes Gesicht auf jede Frage gibt es eine Antwort, du musst sie nur suchen.(suchfunktion)


Zuletzt bearbeitet von Cookie007 am Di 03.01.06 16:37, insgesamt 1-mal bearbeitet
Christian S.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 20451
Erhaltene Danke: 2264

Win 10
C# (VS 2019)
BeitragVerfasst: Di 03.01.06 16:33 
Hallo!

Einfach vom aktuellen "Top"-Wert des Labels 20 abziehen. "Width" bezeichnet die Breite des Labels und nutzt in diesem Falle nichts.

Grüße
Christian

_________________
Zwei Worte werden Dir im Leben viele Türen öffnen - "ziehen" und "drücken".
JayK
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1013



BeitragVerfasst: Di 03.01.06 16:44 
und deine EINHEITEN heißen übrigens Pixel ;)
Cookie007 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 96

win2000 / Xp / Linux9.3
Delphi7
BeitragVerfasst: Di 03.01.06 16:49 
DAAAAAAAAAAAAAAAAAAAAANNNNNNNNNNNNNNNNNNNNNNNNNNNNNKKKKKKKKKKKKKKKKKKKKKKKKEE
EEEEEEEEEEEEEEEEEEEE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!11 :o :D :wink: :!: :idea:

_________________
Mein System : A64 2400 Clawhammer, 1534 MB Ram, 200GB Festplatte, GeForce 6600 (Gigabyte)
Warum so ein langes Gesicht auf jede Frage gibt es eine Antwort, du musst sie nur suchen.(suchfunktion)