New topic: 

Polling mouse inside loop

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

         Page 1 of 1
   [ 1 post ]                 Previous topic | Next topic          Author  
Message        MaxMBJ          Post subject: Polling mouse inside loopPosted: 
Mon Feb 11, 2013 4:09 pm                         
Joined: Thu Feb 03, 2011 11:47 am
Posts: 102                I have a long-running method which is a Demo routine 
to help users learn my program.  I'm having problems with the mouse.

1.  I want to wait within the method in a loop for the user to click a control. 
 Problem is, neither the Action mouse event nor the control mouse event 
registers the click inside this little loop:

  do
  loop until gDemoFlag = false


I placed a gDemoFlag = false in both the Action mouse event and the control 
mouse event to no avail
  

2. The second problem is that sometimes, when a loop of some sort is running, 
pressing the mouse button causes the program to crash.  The main window jumps 
over about 2 pixels, then crashes.

I'm looking for the mouse equivalent of the Keyboard.AsyncKeyDown function.  
Any ideas?   
                             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]

Reply via email to