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. Formatting CEdit

Formatting CEdit

Scheduled Pinned Locked Moved C / C++ / MFC
questiongraphics
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.
  • D Offline
    D Offline
    DanYELL
    wrote on last edited by
    #1

    I have a CFormView with a large bitmap of a form. I lay an edit box on top of the form where the user would type in a value. The image of the form has a vertical line that separates the cents from the dollars. The edit box, even though its white or light shaded, covers or blocks that vertical line of the form. How can I make the edit box see-through so that you still see the background of the form in the edit box? I tried making the edit box transparent or the bitmap transparent or one transparent and the other not and no combination is working. Please any response any one can give me will be greatly appreciated. Sincerely, Danielle

    D N 2 Replies Last reply
    0
    • D DanYELL

      I have a CFormView with a large bitmap of a form. I lay an edit box on top of the form where the user would type in a value. The image of the form has a vertical line that separates the cents from the dollars. The edit box, even though its white or light shaded, covers or blocks that vertical line of the form. How can I make the edit box see-through so that you still see the background of the form in the edit box? I tried making the edit box transparent or the bitmap transparent or one transparent and the other not and no combination is working. Please any response any one can give me will be greatly appreciated. Sincerely, Danielle

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

      What about two edit boxes, one for dollars and the other for cents? Or, what about adding the vertical line to the edit box?

      "One man's wage rise is another man's price increase." - Harold Wilson

      "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

      "Some people are making such thorough preparation for rainy days that they aren't enjoying today's sunshine." - William Feather

      D 1 Reply Last reply
      0
      • D David Crow

        What about two edit boxes, one for dollars and the other for cents? Or, what about adding the vertical line to the edit box?

        "One man's wage rise is another man's price increase." - Harold Wilson

        "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

        "Some people are making such thorough preparation for rainy days that they aren't enjoying today's sunshine." - William Feather

        D Offline
        D Offline
        DanYELL
        wrote on last edited by
        #3

        I thought about that. Two edit boxes just complicates it. You type in a number 1234 and then tab off to type in the cents. Its faster to just type in the number as is. I thought about adding a vertical line to the edit, but have not figured out a nice, simple, clean way of doing that. I found a program on the web that looks like it has the feature Im looking for. Its just a simple edit box and you can see the form in the background of that edit. If you know how to draw that line in the edit box, that would be great.

        1 Reply Last reply
        0
        • D DanYELL

          I have a CFormView with a large bitmap of a form. I lay an edit box on top of the form where the user would type in a value. The image of the form has a vertical line that separates the cents from the dollars. The edit box, even though its white or light shaded, covers or blocks that vertical line of the form. How can I make the edit box see-through so that you still see the background of the form in the edit box? I tried making the edit box transparent or the bitmap transparent or one transparent and the other not and no combination is working. Please any response any one can give me will be greatly appreciated. Sincerely, Danielle

          N Offline
          N Offline
          Niklas L
          wrote on last edited by
          #4

          There are plenty of masked edit controls out there. Maybe one of them might be meeting your requirements? CMFCMaskedEdit[^], Masked Edit Control[^], ...

          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