🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac
Article #26474

Re: Graphics from MPW

#26474
From: Tom Taylor
Date: Fri, 18 Mar 1988 00:01
18 lines
1285 bytes
In article <5790@cit-vax.Caltech.Edu> sho@tybalt.caltech.edu.UUCP (Sho Kuwamoto) writes:
>Can you open up a window from an MPW tool and do graphics in it?  I am
>an MPW neophyte, but have had some experience in mac programming
>before.  What I'd like to do is to have the user input text in the
>worksheet window and have graphics pop out in the other window.  I
>don't want to create an actual application because that would defeat
>the whole purpose of using MPW....
>
>						-Sho

Yep, you can open up windows from tools (Command & GetListItem do, for
example).  In order to open windows, you must call InitGraf.  Don't
call any of the other init routines because the shell already has.  The
reason you have to call InitGraf is that the shell sets up a separate
A5 world for tools. Be sure to close/dispose of your window(s) before
you quit your tool.

Tom Taylor / Development Systems Group
Technical Details
Message-ID: <7729@apple.Apple.Com>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!lll-winken!lll-tis!ames!claris!apple!tomas
References: <5790@cit-vax.Caltech.Edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!lll-winken!lll-tis!ames!claris!apple!tomas
From: tomas@Apple.COM (Tom Taylor)
Newsgroups: comp.sys.mac
Subject: Re: Graphics from MPW
Message-ID: <7729@apple.Apple.Com>
Date: 18 Mar 88 00:01:05 GMT
References: <5790@cit-vax.Caltech.Edu>
Reply-To: tomas@apple.UUCP (Tom Taylor)
Organization: Apple Computer Inc, Cupertino, CA
Lines: 17