[Cuis-dev] TextEntryMorph content: method

Mark Volkmann r.mark.volkmann at gmail.com
Sun Aug 11 12:05:38 PDT 2024


I see now that what I really want is this:

todoEntry layoutSpec fixedWidth: 200

With that in place, setting the content to an empty string to clear it does
not collapse the width of the TextEntryMorph.

On Sun, Aug 11, 2024 at 9:10 AM <ken.dickey at whidbey.com> wrote:

> On 2024-08-10 16:57, Mark Volkmann via Cuis-dev wrote:
>
> > Does it seem desirable for a text input to change its width based on
> > its contents?
>
> When you increase font size or add significant text, would you prefer it
> be drawn "off the end" or truncated?
>
> I prefer that the TextEntryMorph grow to contain its contents.
>
> Yes, alternate this behavior is a good case for subclassing.
>
> HTH,
> -KenD
>


-- 
R. Mark Volkmann
Object Computing, Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20240811/74a2a665/attachment.htm>


More information about the Cuis-dev mailing list