[Cuis-dev] validating text input

ken.dickey at whidbey.com ken.dickey at whidbey.com
Thu Apr 3 14:06:58 PDT 2025


Perhaps check SimpleNumberEntryMorph, subclass of TextEntryMorph.

Used, e.g., in LayoutMorphEditPanel

Feature require: 'UI-Tools'.  "will give you the classes to browse"

HTH,
-KenD

On 2025-04-03 10:49, Mark Volkmann via Cuis-dev wrote:

> I'm looking for a way to validate input into a TextModelMorph. For 
> example, maybe I only want to allow certain characters to be typed or I 
> want to limit the number of characters that can be entered. I've looked 
> through all the methods in TextModelMorph and InnerTextMorph, but don't 
> see an obvious way to do this without creating new subclasses of one or 
> both of those. Am I overlooking something?


More information about the Cuis-dev mailing list