Group Box won't group
-
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/
-
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/
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
-
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
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/
-
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/
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'
-
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/
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:
-
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:
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/
-
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/
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[^]
-
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/
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
-
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/
Me either,Perhaps it doesn,t support that :doh: