Hey, newbie to Lazarus, so I'm sure there is some logical reason for this and sort of visioned a workaround; but this leaves me puzzled
As i'm new to Lazarus, touched Delphi once and have only used Pascal as college programming. I am confused to why if I setup a click event I am no longer able control the checkbox via the form buttons
I have my form, two buttons and a checkbox.
The stop button, unticks the box, the start button ticks the checkbox - This works greatly.
Now I wish to make this checkbox untickable via clicking on it.
I could set the enabled property to false -- but this turns it grey. Button events still work
So, if I create an "OnClick" event for the CheckBox, and tell it to set the checked property to False.
procedure Tfrm_ServControl.chk_ServStatusClick(Sender: TObject);
begin
chk_ServStatus.Checked := False;
end;
The checkbox is now untickable, great. But now the Start and Stop Button's can't interact with it.
Why would this be? I thought events were exclusive to the elements and this would react to only "OnClick" of the checkbox, and not the buttons. Meaning the buttons should still be able to change the property of OnClick accordingly.
Many thanks
-dox