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
- Elsear brings super-fast Networking to Risc PC/A7000/A7000+ (News:)
- Latest hardware upgrade from RISCOSbits (News:)
- RISC OS London Show Report 2024 (News:1)
- Announcing the TIB 2024 Advent Calendar (News:1)
- Code GCC produces that makes you cry #12684 (Prog:39)
- RISCOSbits releases a new laptop solution (News:)
- Rougol November 2024 meeting on monday (News:)
- Drag'n'Drop 14i1 edition reviewed (News:)
- WROCC November 2024 talk o...ay - Andrew Rawnsley (ROD) (News:2)
- October 2024 News Summary (News:3)
Latest postings RSS Feeds
RSS 2.0 | 1.0 | 0.9
Atom 0.3
Misc RDF | CDF
 
View on Mastodon
@www.iconbar.com@rss-parrot.net
Site Search
 
Article archives
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