I need help with Check Box

Posted on 1998-12-11
Last Modified: 2010-04-04
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
Question by:jamiguel
  • 2
LVL 12

Accepted Solution

rwilson032697 earned 0 total points
ID: 1350739
Write an OnClick handler. To do this double click in the OnClick event in the object inspector -->

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

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...




Author Comment

ID: 1350740
I need what no apear a confirm i need paint an X or ./
LVL 10

Expert Comment

ID: 1350741
Raymond... He needs an X being drawn in the check box instead of the \/-like check

LVL 12

Expert Comment

ID: 1350742
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.



Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Delphi with SQL Natvie Client 15 85
Delphi XE2 application frozen on Windows 10 10 266
Dev Express grid collapse 2 39
Tviruailstringtree sort multi columns on header click 1 50
A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

939 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now