New topic: 

How to detect the mouse "click and hold" status on a canvas?

<http://forums.realsoftware.com/viewtopic.php?t=30483>

       Page 1 of 1
   [ 2 posts ]                 Previous topic | Next topic         Author  
Message       Oskar           Post subject: How to detect the mouse "click and 
hold" status on a canvas?Posted: Wed Oct 14, 2009 3:53 pm                       
 
Joined: Sat Nov 26, 2005 4:51 am
Posts: 90              How can I detect the mouse "click and hold" status on a 
canvas? I mean the "continuous mouse down" event. I created a nice subclass of 
buttons using a canvas control and now I'd like to add this functionality so 
that a user can hold the mouse down onto a button and get some sort of repeted 
action based on that (e.g. increasing a value on a display counter).

Thanks for any ideas...

Regards,
- Oskar   
                            Top               patmos           Post subject: 
Re: How to detect the mouse "click and hold" status on a canvas?Posted: Wed Oct 
14, 2009 3:59 pm                        
Joined: Sun Jun 29, 2008 10:44 am
Posts: 40              If you have added
Code:Return True
to the MouseDown event of the canvas
then it will fire the 'MouseDrag' event frequently while the mouse is held 
down.   
                            Top            Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 2 posts ]     
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to