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

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
droosAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
gaohongConnect With a Mentor Commented:
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
 
AVaulinCommented:
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
 
droosAuthor Commented:
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
 
droosAuthor Commented:
Adjusted points to 150
0
All Courses

From novice to tech pro — start learning today.