MS Visual C++ .... retrieving List Box selection
Posted on 2003-03-18
To clarify...this is not a Dropdown, or combo box, but a list box with the Up/Down arrows to the right.
I have found that if I scroll through the box and stop on the desired selection from the list, that the selection is not assigned to the control's variable unless you actually click on the selection (and it changes colors). So a user, using only the arrows to find the desired selection, could stop at the right choice, and from all appearances, think that the displayed value will be submitted, but the selection actually didn't 'take'.
If there another EVENT that can be monitored for a selection made only by using the arrows? The "OnSelchange..." event is only invoked when the user actually clicks inside the box on the selection.
Incidentally, this is not the case with Dropdown lists (combo box). The "OnSelchange..." event function is executed without actually clicking the selection.