[prev in list] [next in list] [prev in thread] [next in thread]
List: racket-users
Subject: [plt-scheme] max width of text-field?
From: robby () cs ! uchicago ! edu (Robby Findler)
Date: 2008-09-29 20:24:36
Message-ID: 932b2f1f0809291324o11a86d16i7e9833b3b16e31bc () mail ! gmail ! com
[Download RAW message or body]
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.
Robby
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic