Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!elroy.jpl.nasa.gov!decwrl!adobe!heaven!heaven.woodside.ca.us From: glenn@heaven.woodside.ca.us (Glenn Reid) Newsgroups: comp.sys.next Subject: Re: Drawing String in a View (Reply Needed ASAP) Message-ID: <516@heaven.woodside.ca.us> Date: 2 Jun 91 08:12:26 GMT References: <1991Jun1.212429.11027@casbah.acns.nwu.edu> Sender: glenn@heaven.woodside.ca.us Lines: 20 garyc@robbie.acns.nwu.edu writes > Does anyone know if there a simple drawing function like DrawText() or > DrawString(). I need to display some plain strings in my View area; but > I hate to go thru and use the Text Object. Wouldn't it be nicer if they can > be done thru a simple func call like DrawLine of NXFrameRect(). If you already have a View, all you have to do is something like this: PSmoveto ( 100.0, 100.0 ); // or wherever PSselectfont ( "Times-Roman", 48.0 ); PSshow ( "Hello whirled." ); NXPing(); Or, even better, write a small PSwrap to do more of it at once. See the docs for more info. -- Glenn Reid RightBrain Software glenn@heaven.woodside.ca.us NeXT/PostScript developers ..{adobe,next}!heaven!glenn 415-326-2974 (NeXTfax 326-2977)