Using Checkbox in a combo, or using Grids as combos?  
Author Message
Aleniko29139





PostPosted: Visual FoxPro General, Using Checkbox in a combo, or using Grids as combos? Top

Hi;

I need a class which will act like a combo, but will let the user select multiple items using a checkbox.
Can this be achieved by using a combo I seem to remember reading somewhere that a grid can be utilized to act as a more advanced combo. Anyone can point me to the right direction

Thank,
Aleniko


Visual FoxPro2  
 
 
Don Higgins





PostPosted: Visual FoxPro General, Using Checkbox in a combo, or using Grids as combos? Top

Depends on the number of records. If it is not too many then the native combo can do the trick with multi select turned on.

If the number of records exceeds 100 or so then a grid (such as Marcias at www.tightlinecomputers.com) OR Mike Lewis's SimpleList class works well. See http://www.ml-consult.co.uk/foxst-28.htm

Mikes class is probably the easiest for simple selections, but Marcia's Grid class is the most powerful



 
 
CetinBasoz





PostPosted: Visual FoxPro General, Using Checkbox in a combo, or using Grids as combos? Top

Foxyclasses' Grids.vcx has one grid class that does that (www.foxyclasses.com).

With a listbox if your items are few you could use bitmap(s) to mimic that.

A third option could be a treeview activex.