Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to select items thru the check boxes in Simplelist

Status
Not open for further replies.

binhpham

Programmer
Oct 12, 1999
33
US
HI MikeLewis.
Thanks for your answer,I know u answered me( I got email from tek-tips notify me you answered me).Unfortunately,I wasn't able to read your answer due to technical problem from the tek-tips site.
Here is the question again:
Using your simplelist with checkbox, how to select the item in the list by clcik the checkbox?
Thanks
 

No problem.

You need to write code in the ItemCheck event. This is an event of the contained oleList control. The event is fired whenever the user toggles the checkbox.

Your code can call the SimpleList's SelectItem method, which is how you programmatically highlight an item.

If you need any more details, just ask.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

My sites:
Visual FoxPro (www.ml-consult.demon.co.uk)
Crystal Reports (www.ml-crystal.com)
 
Thanks Mike
I think I need more details. Wou;d you please help.
Thanks
 

Binhpham,

I haven't tested this code, so it might not work exactly, but it should give you a start.

You write this code in the ItemCheck event. Remember, that's an event of the oleList control, not the SimpleList.

Code:
DODEFAULT(item)

this.parent.SelectItem(item.index)

Hope this helps.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

My sites:
Visual FoxPro (www.ml-consult.demon.co.uk)
Crystal Reports (www.ml-crystal.com)
 
HI MikeLewis
Thanks alot. It works great and exactly what I want,
Even I took this line off
DODEFAULT(item)
You have a good day Mike
Binhpham
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top