Are you sure you don't have RadioButton1 and RadioButton1 mixed up?

I just tried this and it works fine for me (17397)

Try moving the show to the first line

Gerald Pöttler
[EMAIL PROTECTED]



On Sat, Nov 15, 2008 at 3:33 PM, And3mD <[EMAIL PROTECTED]> wrote:
> Hello
> How to change TRadioButton state when form is hidden (win32)?
>
> In Form2 I have 2 Radiobuttons. In Form1 I try do something like that:
>
> procedure TForm1.Button1Click(Sender: TObject);
> begin
>   Form2.RadioButton2.Checked:=true;
>   if Form2.RadioButton2.Checked then
>     ShowMessage('RadioButton2.Checked:=true');
>   Form2.Show;
> end;
>
> MessageBox with information "RadioButton2.Checked:=true" is showed, but in
> showed Form2 RadioButton1 is still checked.
>
> I use Lazarus 0.9.27 rev 17395, fpc 2.2.3 ,win32 - Windows Vista 32 bit
>
> REGARDS
>
> Andrzej "And3mD" Kilijanski
> _______________________________________________
> Lazarus mailing list
> [email protected]
> http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
>

_______________________________________________
Lazarus mailing list
[email protected]
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to