THE MAIN THING (CONFUSING AT FIRST) TO REMEMBER ABOUT CHECK BOXES
IS THAT YOU DON'T NEED TO CODE THE 'checking' AND ''unchecking'
OF THE BOX YOURSELF! Obvious when you're familiar with it although
I confess to having written code to check an unchecked box and
uncheck a checked box myself so that the program gets caught in
a never-ending loop... oops
LET DELPHI DO IT FOR YOU.
and so your code generally need only be v. simple:
procedure TSettingsForm.WordWrapCheckBoxClick(Sender: TObject);
begin
if (WordWrapCheckBox.Checked = True) then EditorForm.Editor.WordWrap := True
else EditorForm.Editor.WordWrap := False;
end;