Solved

I need help with Check Box

Posted on 1998-12-11
4
141 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

728 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