Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Multiselect listbox without using CTL button
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00881108
Message ID:
00881223
Views:
27
Eric,

Rather than changing the standard windows behavior for multiselecting in listboxes. I'd suggest you might want to switch to a grid where the first column is a checkbox and the second column shows the item.

Clicking the checkbox on and off toggles a logical field in the underlying cursor. When the user is done selecting items you can scan the cursor looking for the rows they've selected.

I think the grid works better because the user can't "lose" a lot of already selected items just because they forgot to hold down the ctrl key while selecting the next item they want to add to the selected items.

If you have the screen space you might use a mover list, there are a couple of flavors of them prebuilt in the FFC classes.

>I want to implement a multiselect listbox that allows multiselecting without using the Control button. By that I mean it should work the same way, but just using the click on the mouse, not requiring the control button to be pressed. However, right now the when the user clicks in the listbox, it just selects that one item. On the Click event, I keep track of which ones have been selected and then run through a for-loop reselected each one. Is there a way to prevent FoxPro from unselected the items when a mouse click happens so that I don't need to iterate through a loop each time? Or is there a way to make it seem transparent to the user (right now you can notice that one item is selected on the click, but then reselects everything else)?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform