Autor Beitrag
Biarchiv
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 688



BeitragVerfasst: So 11.09.05 16:18 
Hey,

hab folgendes Problem.
Will von einem Form aus direkt eine OnChange der Hauptform ausführen.

ZB: NebenForm.Edit1.Onchange > MainForm.Edit1.OnChange
wie geht das von der anderen Form aus.

Weiters kann ich im Opjectinspector leider unter onchange andere form onchanges nicht
ausführen.

Weiters wie müssen die Form zum Hauptform verknüpft werden damit man dort
auch was ausführen kann.
s-off
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 35

WinXP
D7 Prof
BeitragVerfasst: So 11.09.05 16:33 
Huhu,

kann Dein Problem nicht so ganz nachvollziehen.

Form1:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
procedure TForm1.Edit1Change(Sender: TObject);
begin
   ShowMessage('Ich habe mich geändert, weil in Form 2 etwas geändert wurde');
end;


Form2:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
uses Unit1;

procedure TForm2.Edit1Change(Sender: TObject);
begin
   Form1.Edit1Change(Sender);
end;

_________________
greetz
s-off