I've been using a little window hack for a while now that uses the kWindowAsyncDragAttribute flag introduced in Mac OS X 10.3 to let you drag RB-created windows without blocking timers, threads, animations, etc. Although adding that flag is a simple declare, the built-in Moved event and Top/Left properties need a bit of coercing to work properly in this context so I packaged up a window subclass as an example. I honestly don't know if this kind of Carbon event meddling will break in a future version of RB but it seems to work for now...

If you'd like to check it out click here: <http:// developer.chaoticbox.com/realbasic.php?tab=classes#asyncdragwindow> The project is built with RB2006r3 but should run on any RB version that supports Shared Methods/Properties.

I'm sure Cocoa RB will bring more asynchronous goodness but till then this is better than nothing!

Thanks,
Frank.
<http://developer.chaoticbox.com/>


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to