[squeak-dev] Re: How to validate content in TextMorph
Marcel Taeumel
marcel.taeumel at student.hpi.uni-potsdam.de
Fri Aug 30 12:26:33 UTC 2013
Just a small hint to another project:
https://www.hpi.uni-potsdam.de/hirschfeld/trac/SqueakCommunityProjects/wiki/widgets
There is a widget that can convert input using a block:
UiLineEdit new
helpText: 'Enter number here...';
converter: [:txt | txt select: [:char | char isDigit]];
autoConvert: true;
openInHand.
Basically, it is implemented with a TextMorph that is converting the
resulting text after each #keyStroke:. :)
Best,
Marcel
--
View this message in context: http://forum.world.st/How-to-validate-content-in-TextMorph-tp4705558p4705784.html
Sent from the Squeak - Dev mailing list archive at Nabble.com.
More information about the Squeak-dev
mailing list
|