Hi Chris, Bert, Alain. Your info is really appreciated. And Alain&#39;s code really makes it easy to understand and use the classes. Thanks a lot, guys.<br><br>Ching<br><br><div><span class="gmail_quote">On 9/19/07, <b class="gmail_sendername">
alain rastoul</b> &lt;<a href="mailto:alr.dev@free.fr">alr.dev@free.fr</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi<br><br>If you want to print a morph, get its form (imageForm message) and use the<br>primitive primPrintHScale of Form class<br>primPrintHScale: hScale vScale: vScale landscape: aBoolean<br> &quot;On platforms that support it, this primitive prints the receiver, assumed
<br>to be a Form, to the default printer.&quot;<br> &quot;(Form extent: 10@10) primPrintHScale: 1.0 vScale: 1.0 landscape: true&quot;<br><br>exemple:<br><br>| cont m length |<br>cont := Morph new.<br>cont color: Color lightBlue.
<br>cont layoutPolicy: TableLayout new ;<br>&nbsp;&nbsp;listDirection: #topToBottom ; cellPositioning:&nbsp;&nbsp;#topLeft ;<br>&nbsp;&nbsp;hResizing: #shrinkWrap ; vResizing: #shrinkWrap.<br><br>#( &#39;Label A&#39; &#39;Label B&#39; &#39;Label C&#39; &#39;Label D&#39;)
<br>do:&nbsp;&nbsp;[ :label |<br> m:= Morph new.<br> m layoutPolicy: TableLayout new ;<br> listDirection: #leftToRight ; height: 25.<br> m cellInset: 4.<br> m color: Color random twiceLighter.<br> length := m width + 200 atRandom.<br>
 m width: length.<br> m addMorphBack: (StringMorph contents: label) .<br> m addMorphBack: (StringMorph contents: length asString).<br> cont addMorph: m.<br>].<br>cont cellInset: 4.<br>cont openInWorld.<br>cont imageForm primPrintHScale: 
1.0 vScale: 1.0 landscape: true.<br><br>&quot;(I think it was&nbsp;&nbsp;printh: 96.0 v: 96.0 landScape: false. on an older<br>version)&quot;<br><br><br>See also the TextPrinter class (sender of primPrintHScale)<br><br>hope it helps
<br><br>regards<br><br>alain<br><br><br><br><br>&quot;Ching de la Serna&quot; &lt;<a href="mailto:ching.dls@gmail.com">ching.dls@gmail.com</a>&gt; a écrit dans le message de news:<br>29b6524b0709171847r486f73fm17c1d44e1874f1a1@mail.gmail.com
...<br>Hi,<br><br>I would like to print graphics in Squeak. What classes do I need to do this?<br>Many thanks in advance.<br><br>Ching<br><br><br><br><br>_______________________________________________<br>Beginners mailing list
<br><a href="mailto:Beginners@lists.squeakfoundation.org">Beginners@lists.squeakfoundation.org</a><br><a href="http://lists.squeakfoundation.org/mailman/listinfo/beginners">http://lists.squeakfoundation.org/mailman/listinfo/beginners
</a><br><br><br><br>_______________________________________________<br>Beginners mailing list<br><a href="mailto:Beginners@lists.squeakfoundation.org">Beginners@lists.squeakfoundation.org</a><br><a href="http://lists.squeakfoundation.org/mailman/listinfo/beginners">
http://lists.squeakfoundation.org/mailman/listinfo/beginners</a><br></blockquote></div><br>