Amiga-C (72/157)

From:rudolph-riedel
Date:15 Sep 2001 at 23:30:48
Subject:Re: [amiga-c] Re: struct Window & WA_Zoom

aaries@libero.it (Elena) wrote on 15.09.2001:

Hi Elena!

> > Where does intuition store the alternative window size
> > and position used for "zooming" the windows?
>
> Unfortunately, the fields you're looking for are maintained by Intuition
> somewhere over the public part of Window structure.
> You could dirty your hands and try to track them (they should be 4
> contiguous WORDS containing the alternative Left,Top,Width,Height values)
> but that's a hack: everything over the public window struct may change
> in future OS releases and we should not care about it.

I feared that this is the answer - a hack is not acceptable.

> Otherwise, you may plan to use WindowClass: so you may do GetAttr() on
> WA_Zoom (see autodocs/window_cl.doc) ;-)

Using reaction is no solution for me either.
Besides - after reading WindowClass's autodoc I wonder how much
of a 'hack' this one is...

> Another (tricky and perhaps not visual attractive) way is storing your
> Window values, then ZoomWindow(), get and store again these new values as
> "alternative" and close it...

ZipWindow() is the call and I have to at least test it.

ZipWindow(window);
zooming[0]=window->LeftEdge;
zooming[1]=window->TopEdge;
zooming[2]=window->Width;
zooming[3]=window->Height;
ZipWindow(window);

Let's see how irritating this looks...

Regards - Rudolph

------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get VeriSign's FREE GUIDE: "Securing Your Web Site for Business." Learn about using SSL for serious online security. Click Here!
http://us.click.yahoo.com/LgMkJD/I56CAA/yigFAA/dpFolB/TM
---------------------------------------------------------------------~->

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/