[futurebasic] Re: [FB] Resize Window in Proportion?

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : November 2000 : Group Archive : Group : All Groups

From: Derek Smith <dereksmi@...>
Date: Tue, 31 Oct 2000 21:13:13 -1000
On Tue, 31 Oct 2000, Robert Covington wrote:

> If this is an FB Example somewhere, please forgive me and point me away to
> it. I am a little burnt out in codeland at this point but relaxation is
> near. (For all of you too I guess. :) )
> 
> How might I keep a window in proportion in a resize drag, and have it end
> up in proportion?

You'll need a drag proc.  What you'll have to do is add an ON EVENT
function that checks for a window drag and then manually calls GrowWindow
or whatever the hell its called and supply a proc address of an enterproc
that takes care of such things in a low memory global called DragHook.

This will get you started:

http://devworld.apple.com/techpubs/mac/Toolbox/Toolbox-250.html#HEADING250-0

From there you can probably find an example I suspect.  Heck, the FB
runtime has all the calls already working, so pirate that and add a
draghook..I bet ALL window resizing will be that way :-)

-D