I have started adding some ARexx code to my project. ZOOMWINDOW and UNZOOMWINDOW, what are the Intuition calls for these?
ZipWindow() sets it to the "alternate" position. But how I unzoom it? ZipWindow(ZOOM) and ZipWindow(UNZOOM) would be nice.
I have started adding some ARexx code to my project. ZOOMWINDOW and UNZOOMWINDOW, what are the Intuition calls for these?
ZipWindow() sets it to the "alternate" position. But how I unzoom it? ZipWindow(ZOOM) and ZipWindow(UNZOOM) would be nice.
Well if your arexx function is to imitate the "zoom gadget" then ZOOM and UNZOOM is not meaningful, there is simply ZOOM. It toggles between two alternate states.
Having siad that just to be completely inconsistant with the way the GUI works Workbench has such a function, in it's arexx interface.
What you can do is chack the window flags if the zoom button has been clicked then WINF_ZOOMED is set so in pseudo code your two arexx function would look like
ZOOMWINDOW:
if( ! window->flags & WINF_ZOOMED) ZipWindow(window)
UNZOOMWINDOW:
if( window->flags & WINF_ZOOMED) ZipWindow(window)
IMHO from a script being able to set the window size explicity is far more useful.
That's what I came up with, too. I am just filling out the "basic" functions for now.
Yes, CHANGEWINDOW is really the way to go.
Thanks.