Solved

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

Posted on 1997-07-28
4
308 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
[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 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

This article will show you some of the more useful Standard Template Library (STL) algorithms through the use of working examples.  You will learn about how these algorithms fit into the STL architecture, how they work with STL containers, and why t…
IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.

726 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