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
- Git client updated to 0.07 (News:1)
- Archive Edition 27:1 reviewed (News:)
- Rougol April 2024 meeting on monday is Anniversary time (News:1)
- WROCC April 2024 meeting o...changes to our phone lines (News:1)
- April developer 'fireside' chat is on saturday night (News:)
- March 2024 News Summary (News:4)
- WROCC Newsletter Volume 41:11 reviewed (News:)
- WROCC March 2024 meeting o... Hughes and Peter Richmond (News:1)
- Rougol March 2024 meeting on monday with Bernard Boase (News:)
- Drag'n'Drop 13i2 edition reviewed (News:)
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
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: 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 ]
 

The Icon Bar: Programming: Single clicks and double clicks