A Basic Image Question + a MorphicWindow

Ali Chamas alichamas at yahoo.com
Mon Nov 22 04:45:13 UTC 1999


'HI EVERYBODY!!!!...<"hi doctor Nick">...',

but seriously,

How do i detect when an image has opened?
I found "Smalltalk snapshot: true andQuit: true" to
use for saving and leaving an active image, but
how/where would i be able to detect an image just
opened? Is it a chained message passed through objects
(just guessing)? Do you have to register with an
object before closing to receive it upon the next
opening? Or is there just some small amount of basic
image theory which i'm missing? Unfortunately, most
Smalltalk books will fully teach the language, but not
the finer details of the actual Smalltalk system.

Speaking on some of the comments about the visual side
of Squeaks widget and interface set...it took only a
few hours on the weekend, and i now have a
MorphicWindow. Its a subclass of ImageMorph, and
renders the window exterior onto the area of the image
form, then has a TransformMorph as the canvas area. It
looks very slick, and the bevel size, canvas/label/bg
colors, frame inset, and close/expand icons are all
configurable. This is only a trial, and i'm going to
redo it using RectangleMorph to create the window body
and effects, not by drawing on a form. Small windows
work fine, but the 8-bit ColorForm for the ImageMorph
slows down when larger extents are set and drawn.
That's the great thing about Squeak, you have a great
set of graphics support there to create your own look
(and feel), plus you get to do it in Smalltalk!!!!!!

Cheers in advance...
Ali.
__________________________________________________
Do You Yahoo!?
Bid and sell for free at http://auctions.yahoo.com





More information about the Squeak-dev mailing list