Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. spinner control makes dots in number within edit box

spinner control makes dots in number within edit box

Scheduled Pinned Locked Moved C / C++ / MFC
csharpquestionc++visual-studiohelp
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    T T H
    wrote on last edited by
    #1

    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.

    J D 2 Replies Last reply
    0
    • T T T H

      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.

      J Offline
      J Offline
      Jose Lamas Rios
      wrote on last edited by
      #2

      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/[^]

      1 Reply Last reply
      0
      • T T T H

        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.

        D Offline
        D Offline
        David Crow
        wrote on last edited by
        #3

        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

        T 1 Reply Last reply
        0
        • D David Crow

          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

          T Offline
          T Offline
          T T H
          wrote on last edited by
          #4

          Thank you so much guys! Sometimes I just need a nudge in the right direction X|

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups