Hi there,
I have a simple modal form from within the a user can make a selection. That is, the form contains only a TStringGrid and two TBitBtn: OK-Cancel. To be more user-friendly, I've implemented the OnDblClick event (which simply calls the btnOK_Click).
The problem occurs when clicking on a row (simple click), and then switching to another running application (Windows Explorer for example). When returning back, if the user clicks on the TStringGrid to reactivate my app (instead of clicking the title bar), the DblClick event is raised but I don't want to...
Is there a way to keep my OnDblClick event and simply implement a [if] statement to check if the previous click was not delayed by switching to another app?
Maybe somthing like to reset the click event queue when switching app???
Thank you all for reading...
I have a simple modal form from within the a user can make a selection. That is, the form contains only a TStringGrid and two TBitBtn: OK-Cancel. To be more user-friendly, I've implemented the OnDblClick event (which simply calls the btnOK_Click).
The problem occurs when clicking on a row (simple click), and then switching to another running application (Windows Explorer for example). When returning back, if the user clicks on the TStringGrid to reactivate my app (instead of clicking the title bar), the DblClick event is raised but I don't want to...
Is there a way to keep my OnDblClick event and simply implement a [if] statement to check if the previous click was not delayed by switching to another app?
Maybe somthing like to reset the click event queue when switching app???
Thank you all for reading...