Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 146
  • Last Modified:

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
0
jamiguel
Asked:
jamiguel
  • 2
1 Solution
 
rwilson032697Commented:
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

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now