In addition to Stef's recommendation, the correct approach to this is to use value converters and a mixture of flags on the widgets (e.g. numeric-only) and closures for validation. That way, the widgets "think" in text, and the ultimate model (or aspect thereof) can have whatever type is appropriate to the domain. Bill -----Original Message----- From: pharo-project-bounces@lists.gforge.inria.fr [mailto:pharo-project-bounces@lists.gforge.inria.fr] On Behalf Of Stéphane Ducasse Sent: Friday, January 22, 2010 4:01 PM To: Pharo-project@lists.gforge.inria.fr Subject: Re: [Pharo-project] Input different data types (integers or datetimes) in a textbox. As far as I know, what you are looking for does not exist. May be you should have a look at Magritte because it describes a lot of data type already and there validation. Stef
I want know if exists some way or mechanism for input data in a widget of a specific type. For example a textbox with only numbers ( decimals or only integers ) or some mechanism of mask edit for fill a text in a textbox of "type" DateTime ??
I´m developing a grid widget and I need in each column define a type of data. With strings is easy but for another values i don´t know do it.
As always excuse me for my poor english, and regards. -- View this message in context: http://n2.nabble.com/Input-different-data-types-integers-or-datetimes- in-a-textbox-tp4442293p4442293.html Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project