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. Group Box caption problem

Group Box caption problem

Scheduled Pinned Locked Moved C / C++ / MFC
helptutorialquestion
3 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.
  • M Offline
    M Offline
    moobob
    wrote on last edited by
    #1

    I have a group box with a caption on a dialog. In the dialog editor it looks fine, the text is on top of the border so there is no line through the text caption. At runtime it appears the border is on top of the text, as the text has the line from the border drawn through it. I created this group box using the dialog editor. I have other group boxes on other dialogs which display correctly at runtime. However, I cannot see any properties that I have set differently between the two dialogs. Does anyone know how to display this dialog so the text does not have the line from the border through it? Thanks in advance, Bob

    L 1 Reply Last reply
    0
    • M moobob

      I have a group box with a caption on a dialog. In the dialog editor it looks fine, the text is on top of the border so there is no line through the text caption. At runtime it appears the border is on top of the text, as the text has the line from the border drawn through it. I created this group box using the dialog editor. I have other group boxes on other dialogs which display correctly at runtime. However, I cannot see any properties that I have set differently between the two dialogs. Does anyone know how to display this dialog so the text does not have the line from the border through it? Thanks in advance, Bob

      L Offline
      L Offline
      l a u r e n
      wrote on last edited by
      #2

      the only time i have seen this is when the caption is a separate static control that you have placed in the tab order after the group box (i think its after) either change the tab order to the other way round or use the built in caption of the group box :)


      situations to avoid #37:
      "good morning ... how many sugars do you take in your coffee ... and what was your name again?"

      coming soon: situations to avoid #38: "...and the dog was there too?"

      M 1 Reply Last reply
      0
      • L l a u r e n

        the only time i have seen this is when the caption is a separate static control that you have placed in the tab order after the group box (i think its after) either change the tab order to the other way round or use the built in caption of the group box :)


        situations to avoid #37:
        "good morning ... how many sugars do you take in your coffee ... and what was your name again?"

        coming soon: situations to avoid #38: "...and the dog was there too?"

        M Offline
        M Offline
        moobob
        wrote on last edited by
        #3

        That's the problem, I am using the built in caption of the group box. I'm seeing it display two different ways in two different dialogs.

        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