Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!hoptoad!hugh From: hugh@hoptoad.uucp (Hugh Daniel) Newsgroups: comp.windows.news Subject: Re: Using PSH to produce output in a window Summary: Create your own window! Keywords: psh(1), windows, output Message-ID: <6660@hoptoad.uucp> Date: 3 Mar 89 08:58:54 GMT References: <1640@leah.Albany.Edu> Reply-To: hugh@hoptoad.UUCP (Hugh Daniel) Organization: Grasshopper Group Lines: 30 If you are allready getting PostScript(tm) to the framebuffer you can open your own window with: /win framebuffer /new DefaultWindow send def /reshapefromuser win send /map win send win /ClientCanvas get setcanvas The comments for the four lines above might be: % Create a new instance of the class DefaultWindow % Send a message to the instance telling it to ask % the user for where/how-big the window is to be % Display the instance on the screen % Get the canvas out of the instance and set it to % be the default canvas Oh, you might do the middle two lines as: {reshapefromuser map} win send though there might be some gripes about doing it that way. The rest of your your code will now display in the window. ||ugh Daniel hugh@toad.com Grasshopper Group, +1 415/668-5998 hugh@xanadu.com 1996 Hayes St. San Francisco CA94117