A stricter numeric text validator?

H H at h.com
Thu Aug 16 14:22:08 PDT 2007


In article <46C4A076.7050000 at ceyd.es>, mmartin at ceyd.es (Manuel Martín) 
wrote:

> > I really like to have an integer-only text validator. And I also need a 
> > range (open or closed) quite often.
> 
> What about wxFormatValidator ?
> 
> Search it at www.wxcommunity.com  downloads
> 
> Manolo
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wx-users-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail: wx-users-help at lists.wxwidgets.org

wxFormatValidator is not able to check if the entered value is in a 
certain range (or I evaluated an old version).
Furthermore, I like to have as a valPtr a pointer to a number type  
variable and not a string. It is not difficult to convert the string 
into a number type again but it is just additional work. Alternatively 
the class should support both types, strings or number types.

Hartwig






More information about the wx-users mailing list