MaskedTextEdit Limitation?

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
 
M

Miro

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.
 
J

Jack Russell

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top