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

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

From: Robert Covington <artlythere@...>
Date: Wed, 1 Nov 2000 22:56:04 -0400
>>Thanks Big D, but I don't know what a DragHook is exactly, nor how to do an
>>enterproc.
>>
>>I see the below FN to the Runtime. Wonder if I could do an OverRide of this
>>during a drag event?
>
>
>>40 Bonus points to the person who can write me a little demo that opens a
>>window to say, 300 x 400 and lets me resize it smaller or larger in
>>proportion while dragging, and have it end up re-drawn to the proportion on
>>Mouse-up, extra 1 point for the resulting window rect already being in some
>>global Rect so I can just stick it into my copybits FN without having to do
>>a Window(_wndPointer) +_portRect deal to get it.
>
>The demo below gives one way to force a resized window to a particular
>aspect ratio. Not very elegant, but it works.
>
>The demo also shows how to implement a DragHook routine. I couldn't think
>of anything useful to do in MyDragProc, but perhaps someone else can. In
>the meantime, a horrible visual demonstration is obtained by calling
>FlashPort.
>
>Robert P.


Thank you for taking the time to delve into this.

You are awarded 18.9 points for the demo, and 12 Bonus Points for the FN
FlashPort call, which will be of use in the future for making people sick
when using my programs.

Please continue to write your demo's with these obscure but useful calls,
so that my education can continue. :)

Thought my monitor was blowing up, but apparently I was only flying inverted.

Tedd your changes made for simplicity but deleted the EnterProc, and both
you and Alain are docked for allowing No Call Required when a simple mind
read would have told you that my prefs aren't set that way.

I think between all of the demo's and exercises I have a hunch how to get
all 41 points now though.

I will post it when it is alive.

Thank you, fine listers.  Remember to always use FlashPort when your users
haven't registered. :) That should do the trick nicely.

Robert C.