General information
Title:
Simulate GroupBox from .NET
I'm having an issue trying to simulate the groupbox as it works in .net (a label on top of the top line of a box). With themes enabled, I cannot set the BackStyle property of the label to opaque as it's not sure what color the themes (and/or windows colors) background is, and, if the user changes the color scheme or theme, the background color changes, but the label's background does not. If I leave it as transparent, then the box I've drawn with it goes right through the text.
I have played with a container that has several lines and a label but that seems to be over complicating the issue.
Is there a simple way of doing this?
Thanks.
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only