Page 1 of 1
Maskedit Control Question
Posted: Tue Jun 27, 2006 8:26 am
by hess_joel
I'm trying to use a MaskEdit control in a dialog for an IP Address. I've set the mask to ###.###.###.###, now when I try to enter an IP, it's only allowing me to type one character in the field at a time.
So I enter the field, type one character, then I have to reselect the field to enter another character.
Using IA 5.31
File Attached:
PortSelection.dfm
Posted: Tue Jun 27, 2006 11:44 am
by MichaelNesmith
What is the value of MaxLength? The control normally tabs out only when MaxLength has been reached.
Posted: Tue Jun 27, 2006 12:42 pm
by hess_joel
15
Posted: Tue Jun 27, 2006 5:36 pm
by MichaelNesmith
That's very odd. Could you please also attach the .dfm.miaf file for your dialog?
Posted: Wed Jun 28, 2006 6:21 am
by hess_joel
Here's the requested file
File Attached:
PortSelection.dfm.miaf
Posted: Wed Jun 28, 2006 6:53 pm
by MichaelNesmith
Thanks. I believe the problem is that the control is counting its "length" including the placeholder characters, instead of just the characters that have been actually entered by the end-user. This is causing the control to tab-out automatically, because it thinks its at 15 characters, due to the placeholder characters.
I will create an incident for this - in the meantime, I recommend you use a regular edit control (without a mask) to avoid the tabbing problem. Apologies for the inconvenience.