Using themes and closing windows

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Using themes and closing windows

Annick
Is there a documentation how to use or write Themes ?

I would like to attach some method when I close a window, how I do that ?

Annick

Reply | Threaded
Open this post in threaded view
|

Re: Using themes and closing windows

Thierry Goubier
Le 25/09/2014 18:37, Annick Fron a écrit :
> Is there a documentation how to use or write Themes ?
>
> I would like to attach some method when I close a window, how I do that ?

You can register to the announcement sent by the window when closing.

| s |
s := SystemWindow new.
s onAnnouncement: WindowClosed do: [ Transcript show: 'Closing' ].
s openAsIs

Thierry