[Lazarus] How to change TRadioButton state when form is hidden (win32)?

Gerald Pöttler feihtthief at gmail.com
Sat Nov 15 15:34:47 CET 2008


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
feihtthief at gmail.com



On Sat, Nov 15, 2008 at 3:33 PM, And3mD <and3md at gmail.com> 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
> Lazarus at lazarus.freepascal.org
> http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
>




More information about the Lazarus mailing list