MaskedTextEdit Limitation?

  • Thread starter Thread starter Ron M. Newman
  • Start date Start date
R

Ron M. Newman

Hi,

I'd like to have a masked text edit box that'll allow for versions strings
like:

1.0.0.0
or
1.0.0.100

meaning, any element of the version can be either 1 digit, or three.

if I set my mask to "000.000.000.000" - I'm forcing the user to input three
digits, if I enter "0.0.0.0", they can't enter two or three.

Ideas?

Thanks,
Ron
 
do what microsoft did perhaps... i think they did this on their serial#
enter part on win 95.

on keydown search for the period, and in that case move to the next text box

have each section its own text box...
textbox only allows numbers and periods and is max length of 3
a backspace will bring you back to the other, a period ( key down ) will
bring you to the next ?

M.
 
Ron said:
Hi,

I'd like to have a masked text edit box that'll allow for versions strings
like:

1.0.0.0
or
1.0.0.100

meaning, any element of the version can be either 1 digit, or three.

if I set my mask to "000.000.000.000" - I'm forcing the user to input three
digits, if I enter "0.0.0.0", they can't enter two or three.

Ideas?

Thanks,
Ron
You could buy the edit control from Farpoint

Jack Russell
 
Back
Top