[Newbie] GraphPane equivalent

Dwight Hughes dwighth at ipa.net
Tue Jul 27 02:41:24 UTC 1999


If you just want to draw, you can do it even more simply, for example:

Display restoreAfter: [Pen new mandala: 30]

This uses the entire Squeak Display for the drawing, then vanishes when
you click on it. There are several examples of this in Pen in the
"geometric designs" method category.

-- Dwight

ChrisRath at aol.com wrote:
> 
> I was wanting to futz about with the Pen class.  I can instantiate an
> instance of Pen and draw in the Workspace window.   Was wondering how to open
> a pane just for drawing.  The Smalltalk/V code would be:
> 
> pen := (GraphPane openWindow: 'Simple' extent: 220 at 220) pen.
> 
> Is there a simple equivalent to this in Squeak?
> 
> Thanks.





More information about the Squeak-dev mailing list