Damien Gerard wrote:
I have a little issue with TCheckListBox.
It is impossible to set by han if an items is checked or not.
After reading the code, I have found the following code :
procedure TCustomCheckListBox.SetChecked(const AIndex: Integer;
const AValue: Boolean);
begin
SetState(AIndex, cbChecked);
end;
May be it should be :
procedure TCustomCheckListBox.SetChecked(const AIndex: Integer;
const AValue: Boolean);
begin
if AValue then
SetState(AIndex, cbChecked)
else
SetState(AIndex, cbUnchecked);
end;
With this modification it works well for me.
Thanks, my fault. Applied in r13718.
Best regards,
Paul Ishenin.
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives