So maybe you should show us what your user function does. And I don't
understand your comment about the Alert() keypress. In the test code we
have seen so far you do not call Alert() until Achoice() and the user
function have finished. How can the Alert() keypress jump back in time
and show up in the user function?
Or have you moved Alert() inside the user function now? In that case,
save the Lastkey() that exists before calling Alert() and put it back
with hb_SetLastKey() after the alert. BTW, what is the purpose of the
Alert() now? So far you have used it to display the Lastkey() value,
clearly for debugging only. What do you use it for now?
Well, it seems that my understanding of the OP was wrong. Oops.
Anyway, the technique used in my prg is still a good example to
control achoice. I don't think that rely on lastkey and putkey (or
similar functions) is a good solution. I consider more robust and
"elegant" not to touch the keyboard buffers. And lastkey after a
mouse click is always 1002 (button UP), so you lose dblclick or
click, when instead the block nAfterInkey is executed for every
single event. Moreover it does not interfere with subsequent input
(alert or other).
The example can be adapted to do what you need with small changes, I suppose.
Regards,
Dan
--
--
You received this message because you are subscribed to the Google
Groups "Harbour Users" group.
Unsubscribe: harbour-user...@googlegroups.com
Web: http://groups.google.com/group/harbour-users
---
You received this message because you are subscribed to the Google Groups "Harbour Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to harbour-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/harbour-users/f512583e-e277-43ee-9f86-71bcb3d32e82n%40googlegroups.com.