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. ATL / WTL / STL
  4. Group Box won't group

Group Box won't group

Scheduled Pinned Locked Moved ATL / WTL / STL
c++questioncsharpvisual-studio
9 Posts 6 Posters 12 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.
  • B Offline
    B Offline
    bkelly13
    wrote on last edited by
    #1

    Windows 7, Visual Studio 2008, C++, MFC Question: How do we put a control in a group box? Details: A group box is dragged placed in the dialog and a control dropped on it. (Static text, check box, and button) When the group box is moved, the control stays put. I interpret this as indicating that the control was not added to the group. I have looked closely at the properties for the group box and the control and have not recognized anything that will accomplish this. What needs to be done to put the control in the group box.

    Thanks for your time If you work with telemetry, please check this bulletin board: http://www.bkelly.ws/irig\_106/

    G Y P H J 5 Replies Last reply
    0
    • B bkelly13

      Windows 7, Visual Studio 2008, C++, MFC Question: How do we put a control in a group box? Details: A group box is dragged placed in the dialog and a control dropped on it. (Static text, check box, and button) When the group box is moved, the control stays put. I interpret this as indicating that the control was not added to the group. I have looked closely at the properties for the group box and the control and have not recognized anything that will accomplish this. What needs to be done to put the control in the group box.

      Thanks for your time If you work with telemetry, please check this bulletin board: http://www.bkelly.ws/irig\_106/

      G Offline
      G Offline
      Garth J Lancaster
      wrote on last edited by
      #2

      Are you thinking of group box maybe in the Visio sense where you 'group' a set of visual objects and then they are treated as one ? from what I recall, it never did that in MFC - you just referred to the elements of a group box in code slightly differently ? by an index

      B 1 Reply Last reply
      0
      • G Garth J Lancaster

        Are you thinking of group box maybe in the Visio sense where you 'group' a set of visual objects and then they are treated as one ? from what I recall, it never did that in MFC - you just referred to the elements of a group box in code slightly differently ? by an index

        B Offline
        B Offline
        bkelly13
        wrote on last edited by
        #3

        I don't know about Visio. After some searching it seems to me that I should be able to drop a control into a group box and have it become part of that group. When the group box is moved, the control moves with it group and stays in the same relative position. Is there some other meaning or use of the term "Group Box" and the control "Group Box."

        Thanks for your time If you work with telemetry, please check this bulletin board: http://www.bkelly.ws/irig\_106/

        G 1 Reply Last reply
        0
        • B bkelly13

          I don't know about Visio. After some searching it seems to me that I should be able to drop a control into a group box and have it become part of that group. When the group box is moved, the control moves with it group and stays in the same relative position. Is there some other meaning or use of the term "Group Box" and the control "Group Box."

          Thanks for your time If you work with telemetry, please check this bulletin board: http://www.bkelly.ws/irig\_106/

          G Offline
          G Offline
          Garth J Lancaster
          wrote on last edited by
          #4

          Sorry, worked late into Friday night on a deployment, family stuff yesterday, didnt get back to test this Ive just tested in VS2005 C++/MFC Created a new MFC, Dialog based app, edited the dialog - dropped and resized the 'Group Box' COntrol from the ToolBox, then dropped 3 x Radio Buttons into the Group Box. Then I selected the Group Box, and it moved independently from the Radio Buttons. Only when I contol-Clicked the Group Box, AND each of the Radio Buttons, could I move them all together

          bkelly13 wrote:

          Is there some other meaning or use of the term "Group Box" and the control "Group Box."

          Having a Group Box around the Radio Buttons changes how they are accessed - almost like an array - not 'moving them around the screen' - seems a bit odd, dont know if I took that much notice of all of this years ago when I did MFC I know someone who actively uses MFC in VS2010 these days, I'll check with him 'g'

          1 Reply Last reply
          0
          • B bkelly13

            Windows 7, Visual Studio 2008, C++, MFC Question: How do we put a control in a group box? Details: A group box is dragged placed in the dialog and a control dropped on it. (Static text, check box, and button) When the group box is moved, the control stays put. I interpret this as indicating that the control was not added to the group. I have looked closely at the properties for the group box and the control and have not recognized anything that will accomplish this. What needs to be done to put the control in the group box.

            Thanks for your time If you work with telemetry, please check this bulletin board: http://www.bkelly.ws/irig\_106/

            Y Offline
            Y Offline
            yusif muffed ektilat
            wrote on last edited by
            #5

            don't lose your time and don't spend lot of effort on an old programs builder , I advice you to use a new software coder like visual studio 2012 or Xamarin or RAD STUDIO XE4. good luck in coding bro. :-D :) :thumbsup:

            B 1 Reply Last reply
            0
            • Y yusif muffed ektilat

              don't lose your time and don't spend lot of effort on an old programs builder , I advice you to use a new software coder like visual studio 2012 or Xamarin or RAD STUDIO XE4. good luck in coding bro. :-D :) :thumbsup:

              B Offline
              B Offline
              bkelly13
              wrote on last edited by
              #6

              VS 2008 is still a lot better than I am. Just the same, its five years old now. I found VS 2012 Pro via Amazon for about $350 and ordered it. I will see what that does. Does it make the group box work?

              Thanks for your time If you work with telemetry, please check this bulletin board: http://www.bkelly.ws/irig\_106/

              1 Reply Last reply
              0
              • B bkelly13

                Windows 7, Visual Studio 2008, C++, MFC Question: How do we put a control in a group box? Details: A group box is dragged placed in the dialog and a control dropped on it. (Static text, check box, and button) When the group box is moved, the control stays put. I interpret this as indicating that the control was not added to the group. I have looked closely at the properties for the group box and the control and have not recognized anything that will accomplish this. What needs to be done to put the control in the group box.

                Thanks for your time If you work with telemetry, please check this bulletin board: http://www.bkelly.ws/irig\_106/

                P Offline
                P Offline
                pasztorpisti
                wrote on last edited by
                #7

                If you are using the win32 dialog builder of VS (for dialog based MFC) then I have bad news. A groupbox is nothing more than simply a visual border with an optional label. It isn't supposed to be the parent of any controls, its not like a panel in modern usable rad gui development tools. You can use a groupbox to visually draw a "border" around a group of controls that are functionally coupled but that's it. Upgrading to VS2012 won't change that. (BTW, have you ever programmed gui using "bare metal" win32?) In my opinion VS2008 is very good but my current favorite is VS2010. They have improved a lot in VS2010 including intellisense and a lot of small bugs. At first touch I didn't really liked VS2012 for some reason... EDIT: also read this: Group Boxes[^]

                1 Reply Last reply
                0
                • B bkelly13

                  Windows 7, Visual Studio 2008, C++, MFC Question: How do we put a control in a group box? Details: A group box is dragged placed in the dialog and a control dropped on it. (Static text, check box, and button) When the group box is moved, the control stays put. I interpret this as indicating that the control was not added to the group. I have looked closely at the properties for the group box and the control and have not recognized anything that will accomplish this. What needs to be done to put the control in the group box.

                  Thanks for your time If you work with telemetry, please check this bulletin board: http://www.bkelly.ws/irig\_106/

                  H Offline
                  H Offline
                  H Brydon
                  wrote on last edited by
                  #8

                  If you want to select a 'group' of controls so that you can move them together, select one of the controls, then ctrl+click several others. You will see them highlighted with the borders of all/each. If you select one by mistake, ctrl+click again. This 'group' handling disappears when you select (click) without either ctrl or shift inside the dialog resource. If you want to 'group' several controls in the Visio sense, Visual Studio doesn't do that (as other posters have indicated).

                  Windows 8 is the resurrected version of Microsoft Bob. The only thing missing is the Fisher-Price logo. - Harvey

                  1 Reply Last reply
                  0
                  • B bkelly13

                    Windows 7, Visual Studio 2008, C++, MFC Question: How do we put a control in a group box? Details: A group box is dragged placed in the dialog and a control dropped on it. (Static text, check box, and button) When the group box is moved, the control stays put. I interpret this as indicating that the control was not added to the group. I have looked closely at the properties for the group box and the control and have not recognized anything that will accomplish this. What needs to be done to put the control in the group box.

                    Thanks for your time If you work with telemetry, please check this bulletin board: http://www.bkelly.ws/irig\_106/

                    J Offline
                    J Offline
                    JasMineLeaf
                    wrote on last edited by
                    #9

                    Me either,Perhaps it doesn,t support that :doh:

                    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