Delphi XE-6
I am trying to create my own style for a TGroupBox control.
I looked at numerous demos and tutorials, but can't seem to figure this one out.
How do you make the text from the control become blank and show up on the style's text control instead?
I know it has to do with the StyleName, but I dont know what i am doing wrong.
Can someone provide a simple example? For example, a TGroupbox - has a caption at top, but what if you want to have it on a banner part way down from top. Creating the banner i can do, but how can i then link the text item on the banner with the caption property of the control?
thanx
You don't have to do the linking yourself.
The FireMonkey controls do it themselves:
Make sure that the text control in your StyleBook is named
text
.I've made a small example like this:
So the final control will look like this:
Set the StyleLookup of your GroupBox to
groupboxstylebottom
in this case.