spinner control makes dots in number within edit box
-
Hi I do have a dialog with a spinner control which is "connected" to an edit box. That edit box is a "number" so the user can not enter any non-digit characters. Now I click the edit box, enter the number "55555" and then press the up-button of the spinner control. The result (unfortunately) is, that the number is not "55556" but "55.556" (notice the dot in there). How can I prevent the spinner control from inserting any dots in the number-text?!? Thanks & Bye, T.T.H. P.S.: I coding an MFC v7.1 application with MS Visual Studio.NET 2003 v7.1.3088 on a German WindowsXP - my problem could be caused by the German number convention (e.x. "12.345.678,90") which I do NOT want to be used in any way in my application.
-
Hi I do have a dialog with a spinner control which is "connected" to an edit box. That edit box is a "number" so the user can not enter any non-digit characters. Now I click the edit box, enter the number "55555" and then press the up-button of the spinner control. The result (unfortunately) is, that the number is not "55556" but "55.556" (notice the dot in there). How can I prevent the spinner control from inserting any dots in the number-text?!? Thanks & Bye, T.T.H. P.S.: I coding an MFC v7.1 application with MS Visual Studio.NET 2003 v7.1.3088 on a German WindowsXP - my problem could be caused by the German number convention (e.x. "12.345.678,90") which I do NOT want to be used in any way in my application.
T.T.H. wrote: How can I prevent the spinner control from inserting any dots in the number-text?!? There's a UDS_NOTHOUSANDS style that you can use for that. In the dialog properties editor, it shows as "No Thousands". -- jlr http://jlamas.blogspot.com/[^]
-
Hi I do have a dialog with a spinner control which is "connected" to an edit box. That edit box is a "number" so the user can not enter any non-digit characters. Now I click the edit box, enter the number "55555" and then press the up-button of the spinner control. The result (unfortunately) is, that the number is not "55556" but "55.556" (notice the dot in there). How can I prevent the spinner control from inserting any dots in the number-text?!? Thanks & Bye, T.T.H. P.S.: I coding an MFC v7.1 application with MS Visual Studio.NET 2003 v7.1.3088 on a German WindowsXP - my problem could be caused by the German number convention (e.x. "12.345.678,90") which I do NOT want to be used in any way in my application.
Check the properties of the control (within the resource editor).
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
-
Check the properties of the control (within the resource editor).
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown