[Newbies] printing graphics in squeak

Michael van der Gulik mikevdg at gmail.com
Tue Sep 18 03:43:36 UTC 2007


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 <ching.dls at gmail.com> 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 <david.mitchell at gmail.com> 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 < ching.dls at gmail.com> 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
> > > Beginners at lists.squeakfoundation.org
> > > http://lists.squeakfoundation.org/mailman/listinfo/beginners
> > >
> > >
> > _______________________________________________
> > Beginners mailing list
> > Beginners at lists.squeakfoundation.org
> > http://lists.squeakfoundation.org/mailman/listinfo/beginners
> >
>
>
> _______________________________________________
> Beginners mailing list
> Beginners at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/mailman/listinfo/beginners
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/beginners/attachments/20070918/726b3b29/attachment.htm


More information about the Beginners mailing list