New topic: Mouse Drag
<http://forums.realsoftware.com/viewtopic.php?t=34216> Page 1 of 1 [ 1 post ] Previous topic | Next topic Author Message macmage Post subject: Mouse DragPosted: Thu Jun 10, 2010 12:48 pm Joined: Fri Apr 21, 2006 7:11 pm Posts: 27 Location: Cincinnati, OH I need to tell which direction the mouse is being dragged and set a scrollbar value appropriately. Below is the code I came up with: Code: dim move As integer if y>previousMouseY then move=sbCatalog.LineStep else move=-sbCatalog.LineStep end sbCatalog.Value=sbCatalog.value+move previousMouseY=y What I wind up with is a bouncing canvas that scrolls down and then up as I drag the mouse down. The reason I need to do this is because the application is going to run on a touchscreen. So, essentially it's like how you scroll on an iPhone or iPad. Does anyone have any ideas on how I can make this work? Thanks! Floyd Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 1 post ] -- 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]
