Autor Beitrag
Apo95
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 129

Win2000, WinXP, WinServer 2003 Standard x86, Win7x64
Delphi 6 Enterprise, D2009 Architect, RAD Studio XE6 Architect
BeitragVerfasst: Do 29.03.12 15:40 
Hallo, Leute

ich wüsste gerne, wie ich auf Knopfdruck die Caption eines Labels auf einem anderen Formular ändern kann?

Zur Hilfe: Button zur Änderung: Form9
Zu änderndes Label: Form AboutBox

Kann jemand mir da helfen??
Ich brauche die Antwort heute noch, wenn jemand das schafft...

Vielen Dank im Voraus! :-)

_________________
Lette-Verein MIA
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8548
Erhaltene Danke: 477

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Do 29.03.12 15:44 
Dazu muss die eine Unit in der anderen in die Uses-Liste mit aufgenommen werden. Also in etwa so:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
// in Form9.pas

// ...

implementation

uses AboutBox; // oder wie die Unit auch heißen mag

// ...

AboutBoxForm.Label1.Caption := 'Anderer Text';

_________________
We are, we were and will not be.
Apo95 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 129

Win2000, WinXP, WinServer 2003 Standard x86, Win7x64
Delphi 6 Enterprise, D2009 Architect, RAD Studio XE6 Architect
BeitragVerfasst: Do 29.03.12 15:55 
Danke Dir! Darauf hätte ich kommen können...

Lieben Gruß!

_________________
Lette-Verein MIA