Solved

Read/Write TRzCheckList (Raize) in c++Builder

Posted on 1997-07-28
4
289 Views
Last Modified: 2006-11-17
In my application I included a CheckListbox.
How can I :
1. determine which checkboxes have been checked
2. change the checkstate at runtime
3. check which item is selected
0
Comment
Question by:droos
  • 2
4 Comments
 
LVL 4

Expert Comment

by:AVaulin
ID: 1166108
1. Use CheckListbox::GetCheck method
2. Use CheckListbox::SetCheck method
3. Write cycle
for( int i=0; i<YourCheckListBox.GetCount(); i++ )
{
// use CheckListbox::GetCheck method
}

Good luck.
0
 

Author Comment

by:droos
ID: 1166109
It doesn't deem to work. I get the message 'GetCheck' is not a member of 'Rzchklst::TRzCheckList'

Couldn't you provide me with a small example ?
0
 

Author Comment

by:droos
ID: 1166110
Adjusted points to 150
0
 
LVL 3

Accepted Solution

by:
gaohong earned 150 total points
ID: 1166111
Hi, Droos:

Basically, Avaulin is right, except maybe a typo

You should use:

bool GetChecked();
void SetChecked(bool);

to do what you want.

Hope this helps

Gaohong Xie
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

Suggested Solutions

Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

758 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

16 Experts available now in Live!

Get 1:1 Help Now