I downloaded CVS just now and tested the RadioGroup changes. About 1 out of every 3 or 4…
Tony Maro wrote 6 lines
Ooops make that last sentance read it's ONE, I change it to ZERO and it's still ONE. hehe. Too little sleep last night.

Mailing lists / lazarus / 2003-03
4 messages · 2 people ·
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
I downloaded CVS just now and tested the RadioGroup changes. About 1 out of every 3 or 4…
Ooops make that last sentance read it's ONE, I change it to ZERO and it's still ONE. hehe. Too little sleep last night.
I downloaded CVS just now and tested the RadioGroup changes. About 1 out of every 3 or 4…
I think, I know, how this happened. It should be fixed now.
Mattias
I downloaded CVS just now and tested the RadioGroup changes.
About 1 out of every 3 or 4 changes as described previously, it still results in not updating the button display. I can't find anything that triggers it - it seems entirely random.
Don't try to actually use this snippet, but check this out:
if NewTrans.Ends then begin
writeln('Transaction Ends setting to ZERO');
writeln('ItemIndex is now' +
inttostr(FrmNewSchedDep.RdoEnds.ItemIndex));
FrmNewSchedDep.RdoEnds.ItemIndex := 0;
writeln('ItemIndex has become'+
inttostr(FrmNewSchedDep.RdoEnds.ItemIndex));
end;The console out put is:
Transaction Ends setting to ZERO
ItemIndex is now 1
ItemIndex has become 1
So you can see that it is zero, I change it to 1 and read it back and it's still zero.
Other times the same code works beautifully. I can't see anything that makes it break or not.
There is no other code that I have that changes this setting in any form. I even deleted and recreated the radiogroup using a different name just to make sure.
Works perfect now. Thanks!
-Tony