Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Selecting an item from a list
Message
From
04/06/2001 09:04:33
 
 
To
04/06/2001 08:22:04
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00514488
Message ID:
00514511
Views:
9
Hi!

You can do this in the MouseDown/MouseUp events. When user clicks on the listbox by mouse, these events are fired. When item selected by keyboard, these events do not fire. Just use the flag property in the listbox class, set it to .T. in the MouseDown event, than check where
needed and drop it to .F.

>I have a listbox showing fields from a file. Apparently a listbox can't tell the difference between selecting an item using up and down arrow keys and clicking on an item or pressing enter. I would like to create an action only if an item is deliberately selected, not if it is scrolled through. Any suggestions?
>
>Thanks!
>Allen
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Reply
Map
View

Click here to load this message in the networking platform