Solved

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

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
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 be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

825 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