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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. CEdit and Numeric. is it possible for floats

CEdit and Numeric. is it possible for floats

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
6 Posts 2 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.
  • U Offline
    U Offline
    ugur_basak
    wrote on last edited by
    #1

    Hi, i got a little problem. In CEdit if we set Number=true we can only enter numerical characters and if we press a non-numeric char, there is an "information message" My question, 1) is it possible to use something to accept "." s for floating numbers 2) if 1st one is not possible, is there any way to show that information message while not using Number=true format. Thanks

    D 1 Reply Last reply
    0
    • U ugur_basak

      Hi, i got a little problem. In CEdit if we set Number=true we can only enter numerical characters and if we press a non-numeric char, there is an "information message" My question, 1) is it possible to use something to accept "." s for floating numbers 2) if 1st one is not possible, is there any way to show that information message while not using Number=true format. Thanks

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

      If you need floating-point numbers, you'll need to use a custom (masked) edit control. There are several here at CP.


      "Ideas are a dime a dozen. People who put them into action are priceless." - Unknown

      U 1 Reply Last reply
      0
      • D David Crow

        If you need floating-point numbers, you'll need to use a custom (masked) edit control. There are several here at CP.


        "Ideas are a dime a dozen. People who put them into action are priceless." - Unknown

        U Offline
        U Offline
        ugur_basak
        wrote on last edited by
        #3

        OK. How can i show windows information message about numeric characters

        D 1 Reply Last reply
        0
        • U ugur_basak

          OK. How can i show windows information message about numeric characters

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

          I don't understand your question.


          "Ideas are a dime a dozen. People who put them into action are priceless." - Unknown

          U 1 Reply Last reply
          0
          • D David Crow

            I don't understand your question.


            "Ideas are a dime a dozen. People who put them into action are priceless." - Unknown

            U Offline
            U Offline
            ugur_basak
            wrote on last edited by
            #5

            OK. in CEdit when we choose number=true, and we enter a non-numeric character there is an error message like a tooltip. that writes something like not to enter non-numeric characters. Can i call that tooltip(or whatever it is), while not using number=true format.

            D 1 Reply Last reply
            0
            • U ugur_basak

              OK. in CEdit when we choose number=true, and we enter a non-numeric character there is an error message like a tooltip. that writes something like not to enter non-numeric characters. Can i call that tooltip(or whatever it is), while not using number=true format.

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

              ugur_basak wrote: Can i call that tooltip(or whatever it is), while not using number=true format. Yes, check out CWnd::EnableToolTips() as well as the CToolTipCtrl class.


              "Ideas are a dime a dozen. People who put them into action are priceless." - Unknown

              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