log in | register | forums
Show:
Go:
Forums
Username:

Password:

User accounts
Register new account
Forgot password
Forum stats
List of members
Search the forums

Advanced search
Recent discussions
- Geminus (Gen:1)
- NetSurf or Iconbar? (Site:1)
- GDPR and RISC OS (News:1)
- Power Switching a RaspberryPi (News:1)
- Messenger Pro reaches release 8 (News:)
- RPCEmu 0.9.0 (Gen:2)
- RISC OS 5.24 arrives (News:)
- Code GCC produces that makes you cry #12684 (Prog:22)
- April News Round-up (News:1)
- Wakefield 2018 show in pIctures (News:1)
Latest postings RSS Feeds
RSS 2.0 | 1.0 | 0.9
Atom 0.3
Misc RDF | CDF
Site Search
 
Article archives
The Icon Bar: 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: 1569
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 ]
 

The Icon Bar: Programming: Single clicks and double clicks