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:
00881235
Views:
13
Because click has default windows behavior I would use rightclick event instead. Also you may not need to iterate through a loop each time.
*RightClick
this.Selected(1) = .t.
KEYBOARD '{SHIFT+END}{SHIFT+HOME}'


>Hello everyone,
>
>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)?
>
>TIA
Previous
Reply
Map
View

Click here to load this message in the networking platform