Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 2 of 2 total
Thread Checkbox - OnCLick
Fri, Dec 9 2011 10:14 AMPermanent Link

Walter Matte

Tactical Business Corporation

When a Checkbox is clicked, and you test the Checked Property in the OnClick Event, it gives me what the Check value WAS not what it has BECOME.

This is opposite to what I would expect and opposite to Delphi behaviour.  Is this intended behaviour?

procedure TForm1.cbStopClick(Sender: TObject);
begin
 if cbStop.checked then
 begin
   edit2.text := 'Checked';
 end
 else
 begin
   edit2.text := 'Not Checked';
 end;

Walter
end;
Fri, Dec 9 2011 6:09 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Walter,

<< When a Checkbox is clicked, and you test the Checked Property in the
OnClick Event, it gives me what the Check value WAS not what it has BECOME.
>>

This is fixed, thanks.   Keep it coming with the small stuff - this is the
stuff that drives people crazy when they try to use it and it doesn't work
as expected, but also that I probably missed during development.

--
Tim Young
Elevate Software
www.elevatesoft.com
Image