Hi Ching.

Morphs draw themselves on Canvases - look at the Canvas class. Typically,
these would be FormCanvas which draws to the screen. I think there is a
Postscript-capable Canvas subclass. I'm not sure what it's called
("PostscriptCanvas"?). Google for Ghostscript for info on how to print
postscript files if you don't have a postscript-capable printer (or if you
aren't running Linux).

Also try reverse-engineering the print command in the... menus? This will be
a good exercise for you. Find the "print" command in a menu somewhere in
squeak (probably in a halo menu for a Morph?), and open the halo on the menu
itself, select "explore" or "inspect" and poke around to see if you can find
where the code for the print command is.

Sorry I can't give you specifics; I don't have squeak available right now.

Michael.

On 9/18/07, Ching de la Serna <[EMAIL PROTECTED]> wrote:
>
> Thanks David, I think I need to look at Morphs a little more closely for
> what I need to do which is to create some graphics (shapes, etc.) and send
> them to a printer.
>
> Ching
>
> On 9/18/07, David Mitchell <[EMAIL PROTECTED]> wrote:
> >
> > Do you mean charts and graphs? If so, check out PlotMorph.
> >
> > http://wiki.squeak.org/squeak/2626
> >
> > On 9/17/07, Ching de la Serna < [EMAIL PROTECTED]> wrote:
> > > Hi,
> > >
> > > I would like to print graphics in Squeak. What classes do I need to do
> > this?
> > > Many thanks in advance.
> > >
> > > Ching
> > >
> > > _______________________________________________
> > > Beginners mailing list
> > > [email protected]
> > > http://lists.squeakfoundation.org/mailman/listinfo/beginners
> > >
> > >
> > _______________________________________________
> > Beginners mailing list
> > [email protected]
> > http://lists.squeakfoundation.org/mailman/listinfo/beginners
> >
>
>
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://lists.squeakfoundation.org/mailman/listinfo/beginners
>
>
_______________________________________________
Beginners mailing list
[email protected]
http://lists.squeakfoundation.org/mailman/listinfo/beginners

Reply via email to