?
Solved

Help with TCheckListBox

Posted on 2003-03-12
4
Medium Priority
?
1,039 Views
Last Modified: 2007-12-19
hi,
Can ne1 help me with this .
I am using a TChecklist box . I want to show a form, when the user checks a any item in the checklistbox. I do not want to show the form, if he is unchecking an already checked item. That is I want to differentiate between checking and unchecking, the item in a TCheckListBox. The event onClickCheck gets fired for both checking and unchecking , so I can't use it because I don't know whetheer the item is being checked, or unchecked.
thanking u in advance
anish
0
Comment
Question by:anishraj
[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
  • 3
4 Comments
 
LVL 9

Expert Comment

by:ITugay
ID: 8125343
procedure TForm1.CheckListBox1Click(Sender: TObject);
begin
  if CheckListBox1.Checked[CheckListBox1.ItemIndex] then
  begin
    // show form here
  end;
end;
0
 
LVL 9

Accepted Solution

by:
ITugay earned 60 total points
ID: 8125351
sorry,
of course ClickCheck instead of Click

procedure TForm1.CheckListBox1ClickCheck(Sender: TObject);
begin
  if CheckListBox1.Checked[CheckListBox1.ItemIndex] then
  begin
    // show form here
  end;
end;

0
 

Author Comment

by:anishraj
ID: 8125366
I solved it in the same way b4 seeing ur comment. i think i should have tried it myself b4 asking it here.anway thank u so much and here are ur points.
0
 
LVL 9

Expert Comment

by:ITugay
ID: 8125379
thank you too:)
0

Featured Post

Independent Software Vendors: 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!

Question has a verified solution.

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

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…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses

764 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