Group box and background image
-
I have a panel on my form that is docked with a gradient image on it. I then have a group box on top of that with some objects in it. How can I get it so that the image on the panel object shows thru the group box....or at least get the image to form all the way around the group box. It seems like where the text is for the group box, it still shows the system colors. Any suggestions? Thanks
Tom Wright tawright915@gmail.com
-
I have a panel on my form that is docked with a gradient image on it. I then have a group box on top of that with some objects in it. How can I get it so that the image on the panel object shows thru the group box....or at least get the image to form all the way around the group box. It seems like where the text is for the group box, it still shows the system colors. Any suggestions? Thanks
Tom Wright tawright915@gmail.com
Unfortunatly the 'Transparent' backcolor setting for controls just gives you the same single backcolor as the Form the control is on. So normally you would not get gradient Image to show at all. However, you could override the Groupbox paint events and work out which bits of the image need to be painted under it, and paint them manually. If the Group box is in a fixed position I would suggest just pasting the appropriate bit of the gradient image into the group box background image.
If you have knowledge, let others light their candles at it. Margaret Fuller (1810 - 1850)
-
Unfortunatly the 'Transparent' backcolor setting for controls just gives you the same single backcolor as the Form the control is on. So normally you would not get gradient Image to show at all. However, you could override the Groupbox paint events and work out which bits of the image need to be painted under it, and paint them manually. If the Group box is in a fixed position I would suggest just pasting the appropriate bit of the gradient image into the group box background image.
If you have knowledge, let others light their candles at it. Margaret Fuller (1810 - 1850)
You know for half a day it did not click with me what you said.....until now. So I set the background image property of my main form and ala peanut butter and jelly sandwiches.....the group box was filled in exactly like I wanted it too. Thanks for the help
Tom Wright tawright915@gmail.com