Delphi-PRAXiS
Seite 2 von 2     12   

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Sonstige Fragen zu Delphi (https://www.delphipraxis.net/19-sonstige-fragen-zu-delphi/)
-   -   Delphi 10x das gleiche -Wie löst man das am besten? (https://www.delphipraxis.net/136964-10x-das-gleiche-wie-loest-man-das-am-besten.html)

Kralle 11. Jul 2009 11:54

Re: 10x das gleiche -Wie löst man das am besten?
 
Hallo,

Zitat:

Direkt nein, aber es lässt sich ja leicht herausfinden:
Delphi-Quellcode:
 ((Sender as TButton).Parent as TMyFrame).MyLabel.Caption := 'aaa';
So als Beispiel, wenn man hier z.B. auf einen Label darauf ansprechen will.
[/quote]

Und wie in die andere Richtung? Wenn ich den Labels von Frame 1 -9 ein neues Caption zuweisen möchte?
Mit
Delphi-Quellcode:
Frame31.Label11.caption:='Test';
einem Label einen neuen Text zuweisen.

Geht das irgendwie auch mathematisch? Also Frame31+x.Label11.caption:='Test' ?

MfG
Heiko


Alle Zeitangaben in WEZ +1. Es ist jetzt 09:34 Uhr.
Seite 2 von 2     12   

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