New topic: 

Handling GUI events on Linux in tight loops

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

       Page 1 of 1
   [ 1 post ]                 Previous topic | Next topic         Author  
Message       fitzbew           Post subject: Handling GUI events on Linux in 
tight loopsPosted: Sun Nov 09, 2008 12:14 pm                        
Joined: Fri Sep 30, 2005 8:30 am
Posts: 223              Using: 2008r4.2 on OSX but targeting Ubuntu 8.10:

I have a For..Next loop that (in a Thread sub-class) draws onto a Window, 
presenting the user with a Growl-like notification that then fades out.

The fade-in drawing is done in a Thread, but the fade-out drawing is initiated 
from a Timer.Action event.

If the user clicks the graphic on the Window, other processing occurs. (A 
window is opened within a Window.Mousedown event.)

Everything is working great on OS X, Vista, and XP.  But on Linux, the 
Window.MouseDown event does not fire while the loop is running (or, sometimes 
it doesn't fire at all).

I've experimented with App.YieldToNextThread() and App.Sleep( n ), but these 
unfortunately mess up the drawing. 

Can anyone offer any advice on how I can yield time to the GUI on Linux so that 
mouse events have a chance to fire?   
                            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 900 classes with 18000 functions in one REALbasic plug-in. 
The Monkeybread Software Realbasic Plugin v8.1. 

&lt;http://www.monkeybreadsoftware.de/realbasic/plugins.shtml&gt;

[email protected]

Reply via email to