[plt-scheme] on-resize in pasteboard%

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Tue Jul 2 18:23:01 EDT 2002

At Tue, 2 Jul 2002 10:50:09 -0400, "Mike T. Machenry" wrote:
> I am trying to derive a class from pasteboard% that will need to be alerted
> when snips inside of it are resized. on-resize is called when snips are
> resized by the pasteboard itself (i.e. (send pasteboard resize snip)) but
> i need to know when the snips are resize at other times, for instants when
> an editor snip's text gets a newline, the size will often change to get bigger.
> is there a way to monitor size changes of a pasteboard's snips?

When a snip decides to resize itself, the enclosing editor's `resized'
method should be called (as opposed to `on-resize').


Posted on the users mailing list.