Stupid windowshape tricks

John J. Theobald mailjjt at bellsouth.net
Tue Jan 21 19:51:01 EST 2003


Scott Rossi wrote:

> Recently, Richard Gaskin wrote:
> 
> 
>>Is there any cool hack to make resizeable windows from a custom windowShape?
>>
> 
> If you're talking about draggable, on-the-fly resize, that would be cool.
> 
> Otherwise, I think the best you can do is simple a toggle action -- click
> and use the masked image you want as the new shape.
> 
> Regards,
> 
> Scott Rossi
> Creative Director
> 
> Tactile Media, Multimedia & Design
> Email: scott at tactilemedia.com
> Web: www.tactilemedia.com
> 
> _______________________________________________
> metacard mailing list
> metacard at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/metacard
> 
> 




You can simply set the rect of the stack, but this crops based on the 
new rect.  Not very pretty.


You're really talking about two different parameters, shape and size.  I 
have created "odd" shaped windows (very cool by the way Mr. Raney) and I 
have scripted "hidden" title bars to grab and move the window.  But 
dynamically resizing the window means you would have to provide for 
resize handles to scale the image used for the shape and reset the 
windowShape once the resize was complete.  Very messy ... not to mention 
the problems you'll run into with any holes (transparent areas) in the 
window, maintaining proportions, now "gray" masked areas, and controls 
that disappear because the visible window is no longer supporting them.

If a "hack" could overcome these obstacles, that would definitely exceed 
my definition of "cool".

Maybe a small palette of pre-defined window shapes would make better 
sense.  IMHO, if you go to the trouble to create a custom-shaped window, 
you probably don't want users resizing it and themselves into "trouble".

Unless of course Mr. Raney is working on something like...

set the vector_based_odd_shape of this stack to <insert formula here>

... one never knows


Regards,


John J. Theobald




More information about the metacard mailing list