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
- AMCS free versions are live! (Gen:12)
- New RISC OS !FamTree application reviewed (News:1)
- Returning to ImpressionX (News:)
- RISC OS interview with Richard Keefe (News:2)
- South West Show is fast approaching (News:4)
- January News Round-up (News:)
- NetFetch reaches Version 5 (News:1)
- Primesolve (PP:12)
- RISC OS FR : The Raspberry Pie contest (News:23)
- BBC BASIC Reference Manual updated (News:4)
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: 1565
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