🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac
Article #13558

Re: ZoomWindow...Help Needed

#13558
From: Marc Hannah
Date: Wed, 19 Nov 1986 23:44
30 lines
2325 bytes
In article <4319@ut-ngp.UUCP>, jdm@ut-ngp.UUCP (Jim Meiss) writes:
> 
> 	I am a novitiate both to C and to MacIntosh programing, so
> please pardon the question if it turns out to be trivial.
> 
> 	I would like to implement the zoom box on a window using
> Lightspeed C v. 1.02 on a MacPlus. According to Tech Note #57 (the only
> thing I have seen written on the subject) one defines  a window of type 8. This indeed gives the zoombox in the window. Next I used the enclosed code fragment to try to get the zoom.
> 	My window that zooms out okay, but will not zoom in. How come??? Perhaps my problem is in the definition of the functions TrackBox
> and ZoomWindow... 
> 
> 	Another question: Is it possible to set the size that 
> 	the window zooms to?
> 

   Apple Technical note number #79 gives is a short but useful note
about doing zooming. In particular it gives some sample code on how
to handle zooming. It also indicates that the DataHandle part of the
window record contants a pointer to a structure that consists of two 
rectanges (not pointers to rectangles). The first rectangle is the unzoomed
state and the second is the zoomed state. The note is careful to mention
that you should make sure DataHandle is not NIL since that would be the
case on a non-zoomable window (i.e. the user is using the old ROM). 

David Gelphman                  BITNET address: DAVEG@SLACVM
Bin #88 SLAC                    ARPANET address:  DAVEG@SLACVM.BITNET
Stanford, Calif. 94305          UUCP address: ...psuvax1!daveg%slacvm.bitnet
415-854-3300 x2538
usual disclaimer #432 applies: my employer apologies for the fact
that I have access to this net.
Technical Details
Message-ID: <994@Shasta.STANFORD.EDU>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!ut-sally!im4u!rutgers!sri-unix!sri-spam!ames!ucbcad!ucbvax!decvax!decwrl!labrea!Shasta!mrh
References: <4319@ut-ngp.UUCP>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!ut-sally!im4u!rutgers!sri-unix!sri-spam!ames!ucbcad!ucbvax!decvax!decwrl!labrea!Shasta!mrh
From: mrh@Shasta.STANFORD.EDU (Marc Hannah)
Newsgroups: comp.sys.mac
Subject: Re: ZoomWindow...Help Needed
Message-ID: <994@Shasta.STANFORD.EDU>
Date: Wed, 19-Nov-86 18:44:35 EST
Article-I.D.: Shasta.994
Posted: Wed Nov 19 18:44:35 1986
Date-Received: Thu, 20-Nov-86 22:42:48 EST
References: <4319@ut-ngp.UUCP>
Distribution: world
Organization: Stanford University
Lines: 30
Keywords: Lightspeed C, New Roms, ZoomWindow
Summary: technote #79,zoom rectangle