Go Premium for a chance to win a PS4. Enter to Win

x
?
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
Medium Priority
?
959 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 200 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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. …
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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.
Loops Section Overview
Suggested Courses

876 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