| Subject: | Problem with RadioButtons |
| Posted by: | Hs (prg_s…@yahoo.com) |
| Date: | 31 Mar 2006 |
I have a vcl application with two forms.
all code for form1 is:
procedure TForm1.Button1Click(Sender: TObject);
begin
Form2.Show;
end;
In Form2 there is two RadioButton and one SpeedButton. code is:
procedure TForm2.FormShow(Sender: TObject);
begin
RadioButton1.Checked := True;
end;
procedure TForm2.SpeedButton1Click(Sender: TObject);
begin
Hide;
end;
Now I do:
1.Click on Button1 (in Form1)
2.Click on RadioButton2 (in Form2)
3.Click on SpeedButton1(in Form2)
4.Click on Button1 (in Form1)
Now i have to see RadioButton1 checked but RadioButton2 is checked !
The problem will be solved if i use a Button instead of SpeedButton !!! but I need to use SpeedButton.
Thanks.