Solved

Using Edit control (as double or float) with validation in Visual C++ -- how to allow entry of decimals (ie: 0.3333, 5.5, etc)

Posted on 2004-04-07
3
947 Views
Last Modified: 2013-11-20
Hi,

How do I do the afore mentioned question?  Right now my app just makes noise at me if I try to enter a 0.333....

Thanks in advance


Nasa
0
Comment
Question by:nasa
3 Comments
 
LVL 23

Accepted Solution

by:
chensu earned 50 total points
ID: 10777157
Uncheck the Number checkbox in the Sytles tab of the edit box properties in the resource editor.
0
 
LVL 1

Author Comment

by:nasa
ID: 10777369
Thanks!
0
 
LVL 7

Expert Comment

by:J_Mak
ID: 13864660
If you do it that way, it doesn't become strictly numeric anymore because you can then enter letters as well as numbers. How do you restrict what the user is typing... .i.e. how do you allow only numbers and decimals to be entered and exclude letters without having to validate on OK.

Cheers.
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now