The problem is that OS X does double-buffering for you, so when you do
that it doesn't actually redraw the window until it's finished.
If this is Carbon-only, the best way to do this is to use system calls
to resize the window for you. Luckily for you, I've already implemented
this function in my Carbon Declare Library (a free module of tons of
declares for different purposes).
To download the Carbon Declare Library, just visit my website:
<http://www.tildesoft.com>
For a quick link to download the CDL directly, click here:
<http://www.tildesoft.com/Files/CarbonDeclareLibrary.sit>
HTH,
Kevin
On Oct 25, 2003, at 1:00 PM, Daniel Weber wrote:
Is there any way to do smooth window resizing in Realbasic?
Similar to OS X, in the system preferences, when the window
animatedly resizes, according to the amount of space the
objects inside the window take up. I'm trying to implement
this in my preferences window, but without much luck. My
only guess was to create a For...Next loop that increased the
height of window incrementally:
currentHeight=window1.height
maxHeight=500
For i=currentHeight to maxHeight
window1.height=i
next
But that didn't work at all. The window resized, but it didn't
animate it. Any ideas how this could work?
--
Kevin Ballard
kevin at sb dot org
http://www.tildesoft.com
- - -
Unsubscribe or switch delivery mode:
<http://support.realsoftware.com/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
|