I need help with Check Box

I need help with check box, i use delphi3, i need whe any user make a click an checkbox if checkbox=true then i need mark an confirm if checkbox.checked=False then mark an "X" or a cross i need help please
jamiguelAsked:
Who is Participating?
 
rwilson032697Connect With a Mentor Commented:
Write an OnClick handler. To do this double click in the OnClick event in the object inspector -->

procedure TForm2.CheckBox1Click(Sender: TObject);
begin
  If CheckBox1.Checked then
    begin
    // Do what you need to do here...
    end;
end;

To force the checkbox to a particular state jsut set its checked property:

CheckBox1.Checked := True;

Note that this happens automatically when someone clicks on the component so you would only do this if you want to override this behaviour...

Cheers,

Raymond.

0
 
jamiguelAuthor Commented:
I need what no apear a confirm i need paint an X or ./
0
 
viktornetCommented:
Raymond... He needs an X being drawn in the check box instead of the \/-like check

Cheers,
Viktor
0
 
rwilson032697Commented:
Hmm.. I that case you had better reject my answer. One of the other experts (like Viktor) will be able to answer this better than I.

Cheers,

Raymond.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.