realbasic-nug
[Top] [All Lists]

Re: Don't update a window?

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Don't update a window?
From: Dave <mrtoast at gmail dot com>
Date: Fri, 31 Dec 2004 18:06:57 -0600
Delivered-to: realbasic-nug at lists dot realsoftware dot com
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=O0Nscj3HYDP6gGua+ZPYghs0znS6ELJAxc+p2xx7GOLvpJoIRYYQR9moKuPeCoYkMhSinKp47ViweEWy28u8R1/8YYgerDB6a3Qpj0h30ic4Bydd8jXkYBTR7KPNHJahe7npyvBeQaE47urDAapb5ugopN7vxECRMxniTrzG5Kk=
References: <7729531304123115087fc1df7f at mail dot gmail dot com> <FA6E5751-5B83-11D9-BE62-000A95A5E76E at freaksw dot com>
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>

<Prev in Thread] Current Thread [Next in Thread>