Solved

I need help with Check Box

Posted on 1998-12-11
4
134 Views
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
0
Comment
Question by:jamiguel
  • 2
4 Comments
 
LVL 12

Accepted Solution

by:
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);
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
 

Author Comment

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

Expert Comment

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

Cheers,
Viktor
0
 
LVL 12

Expert Comment

by:rwilson032697
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.

Cheers,

Raymond.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

705 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

18 Experts available now in Live!

Get 1:1 Help Now