[Lazarus] How to change TRadioButton state when form is hidden (win32)?
And3mD
and3md at gmail.com
Sat Nov 15 18:13:08 CET 2008
I try move Show to the first line no changes, not working.
I made some test with:
- Lazarus 0.9.27 rev 17395, fpc 2.2.3 (snapshot)
- Lazarus 0.9.27 rev 17395, fpc 2.2.2 (snapshot)
- Lazarus 0.9.27 rev 17397, fpc 2.2.3 (compiled myself)
and it not working for me:
Can you download my test project and try:
http://and3md.xon.pl/lazarus/radiobuttontestsrc.zip
Exe file of this project:
http://and3md.xon.pl/lazarus/radiobuttontestexe.zip
REGARDS
Andrzej "And3mD" Kilijanski
> 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
>>
>
> _______________________________________________
> Lazarus mailing list
> Lazarus at lazarus.freepascal.org
> http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
More information about the Lazarus
mailing list