Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Replace Standard Delphi Warning for MaskEdit Input

Status
Not open for further replies.

CarrahaG

Programmer
Mar 25, 2007
98
0
0
AW
Hello

We are using the MaskEdit Object to allow for the entry of 7 digits only. However, when we exit the mask edit object we get the standard Delphi warning:

Invalid input value. Use escape key to abandon changes.

How can we replace this message with our own customized message which allows for the ability for two buttons(Ok -> to continue and ESC to cancel).

Regards,
Georges
 
Write your own maskedit component, or modify the source so that the alert isn't shown.

If I remember correctly, there is also an option in how you create the mask, to whether or not the alert is shown. I don't use that component that often as I found it to be more of a pain than anything else for this exact reason. I've also found that editing whats already brings a worse feeling than being shot in the foot.

-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=
NEVER send the boss to do a techs job
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top