Maskedit Control Question

Got a problem you cannot solve? Try here.
Post Reply
hess_joel
Posts: 47
Joined: Mon Nov 21, 2005 1:52 pm
Location: Eden Prairie, MN

Maskedit Control Question

Post 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
MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Post by MichaelNesmith »

What is the value of MaxLength? The control normally tabs out only when MaxLength has been reached.
Michael Nesmith
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
hess_joel
Posts: 47
Joined: Mon Nov 21, 2005 1:52 pm
Location: Eden Prairie, MN

Post by hess_joel »

15
MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Post by MichaelNesmith »

That's very odd. Could you please also attach the .dfm.miaf file for your dialog?
Michael Nesmith
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
hess_joel
Posts: 47
Joined: Mon Nov 21, 2005 1:52 pm
Location: Eden Prairie, MN

Post by hess_joel »

Here's the requested file

File Attached:

PortSelection.dfm.miaf
MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Post 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.
Michael Nesmith
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
Post Reply