Is there a way to enforce numeric text input field in Spec? ----- Brad Selfridge -- View this message in context: http://forum.world.st/Spec-Numeric-Input-tp4909464.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
Hi Brad, there is not default processor for that, but you can get notified when text is entered or accepted. Perform your own validation logic there and set the content of the field to whatever is appropriate. -- Does this mail seem too brief? Sorry for that, I donât mean to be rude! Please see http://emailcharter.org . Johan Fabry - http://pleiad.cl/~jfabry PLEIAD and RyCh labs - Computer Science Department (DCC) - University of Chile
On Aug 3, 2016, at 12:07, Brad Selfridge <bsselfridge@gmail.com> wrote:
Is there a way to enforce numeric text input field in Spec?
----- Brad Selfridge -- View this message in context: http://forum.world.st/Spec-Numeric-Input-tp4909464.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
Hi, not directly but Denis made a very cool set of components that allow masks⦠and after all, you can display any morph as spec (with #asSpecAdapter) http://smalltalkhub.com/#!/~dionisiy/Twisty Esteban
On 03 Aug 2016, at 19:51, Johan Fabry <jfabry@dcc.uchile.cl> wrote:
Hi Brad,
there is not default processor for that, but you can get notified when text is entered or accepted. Perform your own validation logic there and set the content of the field to whatever is appropriate.
-- Does this mail seem too brief? Sorry for that, I donât mean to be rude! Please see http://emailcharter.org .
Johan Fabry - http://pleiad.cl/~jfabry PLEIAD and RyCh labs - Computer Science Department (DCC) - University of Chile
On Aug 3, 2016, at 12:07, Brad Selfridge <bsselfridge@gmail.com> wrote:
Is there a way to enforce numeric text input field in Spec?
----- Brad Selfridge -- View this message in context: http://forum.world.st/Spec-Numeric-Input-tp4909464.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
participants (3)
-
Brad Selfridge -
Esteban Lorenzano -
Johan Fabry