[plt-scheme] max width of text-field?

From: Robby Findler (robby at cs.uchicago.edu)
Date: Mon Sep 29 16:24:36 EDT 2008

On Mon, Sep 29, 2008 at 2:40 PM, Matthew Flatt <mflatt at cs.utah.edu> wrote:
> At Mon, 29 Sep 2008 07:48:57 -0400, "Geoffrey S. Knauth" wrote:
>> Is there a way to set the max width of a text-field?
> No, not without creating a new kind of panel that arranges its children
> taking into account a maximum for each.
> (In other words, there's no notion of a "maximum size" built into the
> existing layout system --- only "minimum size" and "stretchability".)

And just in case it wasn't clear, the best approximation we have to a
maximum width is to set the minimum width to something and then turn
off the stretchability.


Posted on the users mailing list.