Acorn Arcade forums: Programming: Single clicks and double clicks
|
Single clicks and double clicks |
|
Andrew Ellis (22:51 2/2/2007) adrianl (05:39 3/2/2007) Andrew Ellis (17:06 3/2/2007)
|
|
Andrew Ellis |
Message #98037, posted by Andrew Ellis at 22:51, 2/2/2007 |
Member
Posts: 43
|
Hi,
Could someone please tell me how you differentiate between single clicks and double clicks in a window please (I am using Acorn C/C++ & toolbox).
Thanks
Andrew Ellis |
|
[ Log in to reply ] |
|
Adrian Lees |
Message #98043, posted by adrianl at 05:39, 3/2/2007, in reply to message #98037 |
Member
Posts: 1637
|
I presume you mean in the window itself rather than an icon, in which case the window has a button type which you need to ensure is set such that you get notified of double clicks (there are a few different settings), and then you can differentiate single clicks from double clicks, from drags, by looking at the different bits of the button state in the mouse click event. See the PRMs for more information.
[Edited by adrianl at 05:41, 3/2/2007] |
|
[ Log in to reply ] |
|
Andrew Ellis |
Message #98064, posted by Andrew Ellis at 17:06, 3/2/2007, in reply to message #98043 |
Member
Posts: 43
|
Hi Adrian
Thanks for the reply.
Yes I did mean in a window, sorry I should have been clearer.
Well I'll set to and have a play.
Kind Regards
Andrew |
|
[ Log in to reply ] |
|
|
Acorn Arcade forums: Programming: Single clicks and double clicks |