Nope, I'm in the MouseDrag event of a window (the Left/Width change
occurs every time the MouseDrag event fires). Turning off compositing
doesn't change anything either.
Dave
On Fri, 31 Dec 2004 15:30:38 -0800, Seth Willits <seth at freaksw dot com>
wrote:
> On Dec 31, 2004, at 3:08 PM, Dave wrote:
>
> > I have a window whose left and width values I'd like to change
> > "simultaneously". The "self.left = xxx" and "self.width = yyy" lines
> > are right next to eachother, but when I execute the code, the window
> > flickers. It moves, updates, widens, and updates. How can I get it
> > to move, widen, and THEN update?
>
>
> Window moving and resizing doesn't take place until after the method
> ends or the event loop comes around again. It's easy to see this with
> the code:
>
> self.Width = self.Width * 2
> App.DoEvents // toggle me on and off.
> while not UserCancelled
> wend
>
> If you're seeing otherwise, either you're using an older version of
> REALbasic where this didn't happen, or maybe you're in a thread?
>
> Seth Willits
--
"You take the blue pill. The dream ends, you wake up in bed and
believe whatever you want to believe. You take the red pill. You stay
in Wonderland and I show you how deep the rabbit-hole goes. You take
the purple pill. The pain stops, you are relieved from heartburn, and
the lining of your esophagus returns."
There's no place like ~/
_______________________________________________
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>
|