An E Notation Numeric Edit Control
Posted
by Mike Scanlon
on September 6th, 1998
NumEdit is a simple edit control that forces the user to enter a double value in e notation, such as 1.23, 12e4, -12E4, and so forth. The member functions GetValue() and SetValue() make working with doubles in the edit field a bit easier.
Just declare a variable as type CNumEdit, and off you go.

Comments
Thanks
Posted by lukecodeguru on 02/22/2006 12:26amI appreciate that code. Thanks to you!
ReplyThanks
Posted by sangamesha on 10/28/2004 08:22amI found it is helpfull.
ReplyExEditors Library
Posted by Legacy on 03/19/2002 12:00amOriginally posted by: Mike Philips
ReplyNumEdit: for VC++ newbies
Posted by Legacy on 08/08/2000 12:00amOriginally posted by: Eric Hurtebis
Many thanks for NumEdit: that's all what I was looking for...
Just to tell about how I used it in my project:
Copy the 2 files NumEdit.cpp and NumEdit.h in your project directory. Include them in your project (Project, Add).
(the class CNumEdit will appear in ClassView).
Add a Edit control in your dialog ressource.
Add a member variable, CEdit type (e.g. m_x).
In ClassView, class C...Dlg, double-click on m_x to modify C...Dlg.h:
change CEdit m_x into CNumEdit m_x.
also #include NumEdit.h
In OnInitDialog, you can initialize m_x:
m_x.SetValue(3.1415).
Possible enhancements:
the format string "%G" can be a private member; and can be user-tunable, e.g. "%8.3f", usable for SetValue or UpdateValue (for display, as soon as killfocus).
Thanks,
Eric.
ReplyNumEdit
Posted by Legacy on 03/07/2000 12:00amOriginally posted by: Boris
Found Bugs:
Reply1. on Paste - lets you make paste
2. lets insert chars(numeric) before "-"
:)
Thanks!
Posted by Legacy on 12/03/1999 12:00amOriginally posted by: Carlos Melo
It's just what I need!
Thanks a lot.
Keep up the good work.
Greetings from Portugal,
ReplyCarlos
A bug found in CPrinter::PrintText(PRTTYPE *ps,double LineSpacing)
Posted by Legacy on 04/23/1999 12:00amOriginally posted by: Joseph Kiernan
Replyres dir added
Posted by Legacy on 02/02/1999 12:00amOriginally posted by: Mike Scanlon
The res dir has been added to the demo project.
Reply