Link to home
Start Free TrialLog in
Avatar of gianluca
gianluca

asked on

trasparent text on a toolbar button

I would like to add a simple text on a toolbar imaged-button using a TLabel or a TStaticText component, in this way I can change the text on the button at run-time and customize it. I tried with a TLabel component, setting its Trasparent property to true, but it not works on the toolbar. I tried to add a WMCTLCOLORSTATIC message using a TStaticText component and pass NULL_BRUSH (or HOLLOW_BRUSH) as result, but it still not works (it is not trasparent).
Avatar of Lischke
Lischke

Sorry, but I don't understand your problem. You can directly access toolbar buttons and set their caption to whatever you need. Why going the long way using additional controls?

Ciao, Mike
You want to cover the toolbutton.caption?

menxin
Avatar of gianluca

ASKER

I use a ImageList to cover the button with some icons, but in the same time I want put a label on this image; and I need to change this text at runtime.
ASKER CERTIFIED SOLUTION
Avatar of philipleighs
philipleighs

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
What's with the C grade on a comment you stingy p***k? If you don't like a comment, then don't turn it into an answer.