[futurebasic] Re: [FB] fn CreateNewWindow(...) v Appearance Window- MinWindow

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : April 2005 : Group Archive : Group : All Groups

From: Bernie <fblist@...>
Date: Sat, 23 Apr 2005 13:35:19 +0100
Robert P wrote:

> Bernie wrote:
>> Windows created using FB's appearance window statement allow the user 
>> to resize down to 64 x 64. However, windows created using fn 
>> CreateNewWindow(...) can only be resized down to 128 x 128. I've 
>> searched the window manager docs and the dev site but can't find a 
>> way to override the this size.
>
> There seem to be two method to constrain the resize limits of a window 
> that has the standard window event handler (i.e. was created with 
> _kWindowStandardHandlerAttribute).
> You can either
> (1) install a handler for {_kEventClassWindow, 
> _kEventWindowGetMinimumSize}, {_kEventClassWindow, 
> _kEventWindowGetMaximumSize} or both, and thereby override the default 
> system-supplied limits during the resize,
> or
> (2) call SetWindowResizeLimits before the resize.

<demo snip>


SetWindowResizeLImits works well for me. I was sure I'd tried that... 
obviously not (?)

Thanks again

Bernie