realbasic-nug
[Top] [All Lists]

Re: RB3DSpace width vs Window width

To: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Subject: Re: RB3DSpace width vs Window width
From: Joe Strout <joe@inspiringapps.com>
Date: Mon, 27 Apr 2009 22:22:09 -0600
Authentication-results: mx.google.com; spf=neutral (google.com: 74.124.194.228 is neither permitted nor denied by best guess record for domain of realbasic-nug-bounces@lists.realsoftware.com) smtp.mail=realbasic-nug-bounces@lists.realsoftware.com
Delivered-to: listarchive@realsoftware.com
In-reply-to: <63367.24.20.159.142.1240885466.squirrel@rpgportland.com>
Organization: Inspiring Applications, Inc.
References: <63367.24.20.159.142.1240885466.squirrel@rpgportland.com>
Reply-to: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Sender: realbasic-nug-bounces@lists.realsoftware.com
User-agent: Thunderbird 2.0.0.21 (Macintosh/20090302)
fargo@rpgportland.com wrote:

calculations tend to be based off incorrect information. Specifically the
window will have returned to its smaller size, in this case 469 wide, but
the 3d space still reports 1280 at the time of my method call.

Yeah, the Rb3DSpace probably has to be updated before it will realize that it's been resized.

Anyone know of a good way to get around this lag? I tried running this
loop before my position update method-
  if me.FullScreen then
    me.FullScreen = False
    while myspace.width <> me.width
    wend

Hah, good try, but no, it's not a time lag here; it's an event-processing thing. Try myspace.Update. If that doesn't work, then you'll have to simply start a single-fire timer whose Action event calls MoveLabels. Even a period of 1 would probably suffice, since the point is just to let the event loop finish doing its work.

Best,
- Joe

--
Joe Strout
Inspiring Applications, Inc.
http://www.InspiringApps.com


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

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>
  • Re: RB3DSpace width vs Window width, Joe Strout <=