On Monday 30 October 2017 13:44:46 fredvs wrote:
> > Please set "valuemax" to a very big value instead.
>
> Ok, valuemax = 999999 and valuemin = '' .
>
> Now, if for example 200 is entered ---> reset to 100.
> And if  value = '' or < 0 --> reset to 0.
>
> Perfect.
>
> Huh, for the totally dummies, is it possible to do a filter if a character
> is entered in place of a number or '' ?
>
> (This to prevent error messages).
>
It contradicts the value entry philosophy of MSEgui. Until one presses "Enter" 
all characters are allowed. I also think it is no good idea to silently 
change an entered value as you do in above "onsetvalue" handler.
If you insist to do character checking while value entering 
use "ontextedited".

Martin

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
mseide-msegui-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk

Reply via email to