Autor Beitrag
neocox
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 44



BeitragVerfasst: Mi 15.04.09 12:34 
also ich hab 3 TForms.

im 1.: ist eine TRadioGroup mit 3 auswahlmöglichkeiten
im 2.: erstmal nur ein BitBtn mit Kind BkOK
im 3.: erstmal nur ein BitBtn mit Kind BkChancel

wenn ich nun im TForm2 auf OK drück, soll automatisch im TForm1 bei TRadioGroup die 1. auswahlmöglichkeit (also ItemIndex 1) markiert sein, bei drücken auf Chancel soll ItemIndex 2 markiert sein

wie kann ich das umsetzen ?
Stundenplan
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 128
Erhaltene Danke: 32

Win 7
Delphi 7 Pers., C# (VS 2010 Express)
BeitragVerfasst: Mi 15.04.09 18:57 
Ungefähr so:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
//Ok-Button
begin
Form1.RadioGroup1.ItemIndex := 0;
end;

//Cancel-Button
begin
Form1.RadioGroup1.ItemIndex := 1;
end;