| RTL reference|Glossary|Tips/Tricks|FREE App/VCL|Essentials|Books|Link Back |
| TNumEdit | |||||||||||||||||||
| TNumEdit is a component, just like TEdit, but it only accepts numerical input. You can adjust whether to accept positive or negative numbers or integer or decimals. You can also limit the input by using MinValue and/or MaxValue. Full source code. | |||||||||||||||||||
Article submitted by: Michael Klaus for the Delphi Programming Quickies Contest.
TNumEdit is a component, an TEdit descedant, that accepts only numerical input. You can adjust whether to accept positive or negative numbers (AllowNeg) or integer or decimals (AllowDec). You can also limit the input by using MinValue and/or MaxValue.
Here's a code snippet, the WhenKeyPress event handler procedure:
Download full source code!
Of course, if you have any question please post and discuss on the Delphi Programming Forum
|
|||||||||||||||||||
All graphics (if any) in this feature created by Zarko Gajic.
| More Delphi |
|
· Learn another routine every day - RTL Quick Reference. · Download free source code applications and components. · Talk about Delphi Programming, real time. · Link to the Delphi Programming site from your Web pages. · Tutorials, articles, tech. tips by date: 2003|2002|2001|2000|1999|1998 or by TOPIC. |
| Stay informed with all new and interesting things about Delphi (for free). |
|
|
| Got some code to share? Got a question? Need some help? |

