-
November 30th, 2019, 11:23 AM
#1
Changing GroupBox Title/Label Position
Can anyone tell ,how to change the GroupBox Title/Label Position .Since resource script(.rc) file has coordinates of groupbox but not of the title/label of groupbox, by deafult it comes on the top left !! I want to set it at certain pixels,how can i do that.
-
November 30th, 2019, 01:25 PM
#2
Re: Changing GroupBox Title/Label Position
Use the mfc class wizard to add a control variable to the group box. Then use the control variable's methods to manipulate the group box.
-
November 30th, 2019, 02:47 PM
#3
Re: Changing GroupBox Title/Label Position
Originally Posted by Beginner_MFC
Can anyone tell ,how to change the GroupBox Title/Label Position .Since resource script(.rc) file has coordinates of groupbox but not of the title/label of groupbox, by deafult it comes on the top left !! I want to set it at certain pixels,how can i do that.
The simplest way would be use the GroupBox without title and put a static control with the desired title at the desired position above the GroupBox.
Victor Nijegorodov
-
December 1st, 2019, 01:43 AM
#4
Re: Changing GroupBox Title/Label Position
Yeah its simplest but issue is this place title/text above the groupbox and not what i want to achieve. I want to shift the default position of title/label from top left to certain pixels
-
December 1st, 2019, 03:07 AM
#5
Re: Changing GroupBox Title/Label Position
Originally Posted by Beginner_MFC
Yeah its simplest but issue is this place title/text above the groupbox and not what i want to achieve. I want to shift the default position of title/label from top left to certain pixels
Then, I guess. You will need some custom control or, at least, custom draw.
Victor Nijegorodov
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|