Information générale
Titre:
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.
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement