[plt-scheme] MrEd question about text% resizing

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Sat Sep 7 13:00:50 EDT 2002

> But there's still some problem. I need some editors to automatically 
> resize when the parent frame% is resized.

When an editor-canvas% is resized, it calls the `on-display-size'
method of editor it's displaying (if any).

So your top-level text% is notified of the size change. Nothing in the
base text% class propagates that message to embedded editors, though.
You'll have to set that up yourself.

When you figure out which editor needs to be resized (i.e., it's min-
and max-width needs to be adjusted), finding the right size is tricky.
I'm certain that it's possible, though. Robby may be able to point you
to an example in the DrScheme implementation.


Posted on the users mailing list.