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. How to highlight a Check box if no caption

How to highlight a Check box if no caption

Scheduled Pinned Locked Moved C / C++ / MFC
tutorial
7 Posts 4 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.
  • V Offline
    V Offline
    vikas amin
    wrote on last edited by
    #1

    I have to place many check box on a Tab Page , but the checkbox have no caption , When the user want to slect any check box by using the Tab switch on the keyboard. The checkbox is not highlighted as it has no caption and He is not able to identify the check box is currently slected Can any one tell he some method trough which ,a higlight or say a colour change can be done to the check box. Remember we are not using the mouse (only keyboard) thanks in advance ;) -- modified at 0:45 Tuesday 7th November, 2006

    Vikas Amin EATON PUNE

    H N B 3 Replies Last reply
    0
    • V vikas amin

      I have to place many check box on a Tab Page , but the checkbox have no caption , When the user want to slect any check box by using the Tab switch on the keyboard. The checkbox is not highlighted as it has no caption and He is not able to identify the check box is currently slected Can any one tell he some method trough which ,a higlight or say a colour change can be done to the check box. Remember we are not using the mouse (only keyboard) thanks in advance ;) -- modified at 0:45 Tuesday 7th November, 2006

      Vikas Amin EATON PUNE

      H Offline
      H Offline
      Hamid Taebi
      wrote on last edited by
      #2

      Why they dont have caption?


      WhiteSky


      V 1 Reply Last reply
      0
      • V vikas amin

        I have to place many check box on a Tab Page , but the checkbox have no caption , When the user want to slect any check box by using the Tab switch on the keyboard. The checkbox is not highlighted as it has no caption and He is not able to identify the check box is currently slected Can any one tell he some method trough which ,a higlight or say a colour change can be done to the check box. Remember we are not using the mouse (only keyboard) thanks in advance ;) -- modified at 0:45 Tuesday 7th November, 2006

        Vikas Amin EATON PUNE

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

        Owner-drawing the checkbox would probably be the way to go. There are plenty of articles on codeproject to guide you in owner-drawing controls. I never thought of the fact that the focus indication is missing when omitting the label. Interesting.

        home

        N 1 Reply Last reply
        0
        • H Hamid Taebi

          Why they dont have caption?


          WhiteSky


          V Offline
          V Offline
          vikas amin
          wrote on last edited by
          #4

          I have lots of check box to be placed on a small property sheet , more over grooping is possible so insted of individual name groups have been created

          Vikas Amin EATON PUNE

          H 1 Reply Last reply
          0
          • N Niklas L

            Owner-drawing the checkbox would probably be the way to go. There are plenty of articles on codeproject to guide you in owner-drawing controls. I never thought of the fact that the focus indication is missing when omitting the label. Interesting.

            home

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

            ..coming to think of it, you could do your own bookkeeping of the focus in your dialog, and just draw the focus indication from your dialog class.

            home

            1 Reply Last reply
            0
            • V vikas amin

              I have to place many check box on a Tab Page , but the checkbox have no caption , When the user want to slect any check box by using the Tab switch on the keyboard. The checkbox is not highlighted as it has no caption and He is not able to identify the check box is currently slected Can any one tell he some method trough which ,a higlight or say a colour change can be done to the check box. Remember we are not using the mouse (only keyboard) thanks in advance ;) -- modified at 0:45 Tuesday 7th November, 2006

              Vikas Amin EATON PUNE

              B Offline
              B Offline
              Blake Miller
              wrote on last edited by
              #6

              I just have a dreadful feeling that your UI is going to suck. Can you suggest a list control with the checkbox style, so all your items will fit on the window AND they can have labels?

              Any sufficiently gross incompetence is nearly indistinguishable from malice.

              1 Reply Last reply
              0
              • V vikas amin

                I have lots of check box to be placed on a small property sheet , more over grooping is possible so insted of individual name groups have been created

                Vikas Amin EATON PUNE

                H Offline
                H Offline
                Hamid Taebi
                wrote on last edited by
                #7

                First I have a suggestion if you dont have caption on checkboxs use of tooltip for them.For color my naswer is OwnerDraw I think you can find an example on codeproject for ownerdraw its three led (checkboxs).


                WhiteSky


                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