hal9k
Junior Member
Posts: 87
|
Post by hal9k on Jun 13, 2023 12:35:40 GMT -5
I have a listbox that contains a list of available reports to create. The listbox is hidden until the user clicks on a button called "Reports". The list box is then visible for the user to select a report. I used singleclickselect just as a convenience for my user. After the report is selected, the listbox is again hidden until the next time. Everything works as expected unless the user wants to print the same report again. She clicks the Reports button, the list appears, and she clicks on the desired report. The listbox entry is highlighted, but it doesn't fire the action routine. She has to click it again to get her report. If she selects report #1, then later selects report #4, and then later selects report #1 again single clicks work. The only failure is if she selects the same report twice in a row. I have tried reissuing the singleclickselect command and even tried the reload command, but nothing seems to allow singleclickselect to work for the same entry in consecutive tries.
How can I get singleclickselect to work every time?
Thanks yet again.
|
|
|
Post by Rod on Jun 13, 2023 13:02:40 GMT -5
The windows system requires a CHANGE of selection to prompt a new selection event to fire. To ensure this happens don’t leave the last selection selected, issue a select 0 command as soon as you have processed the last selection action. This will ensure the list does not have an item selected and so it will react to any new selection.
|
|
hal9k
Junior Member
Posts: 87
|
Post by hal9k on Jun 13, 2023 13:29:51 GMT -5
Thank you so much.
|
|