Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2003-03

RadioGroup woes still

4 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Mattias Gaertner
to Tony Maro: I downloaded CVS just now and tested the RadioGroup changes. About 1 out of every 3 or 4…
Show quoted text 10 lines
On Mon, 2003-03-17 at 13:06, Tony Maro wrote: > 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. 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 think, I know, how this happened. It should be fixed now.

Mattias

Reply by email

Tony Maro

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.

Tony Maro http://tony.maro.net/ Check out my software "CheckBook Tracker" A GPL (free) replacement for Microsoft Money!

Reply by email