button: add text and image

Spacewalker

Member
Licensed User
Longtime User
Hello,

how can I mix text and an image in a button?

If I add some text and use an image then the image covers the whole button (and the text).

For example I have the text "OK" and next to the text I would like to add an image (for example a "Tick" icon) ?

Heinz
 

klaus

Expert
Licensed User
Longtime User
It is possible but not directly.
You need to have a bitmap with the full size of the button with a transparent background and the bitmap you want on it.
Then you need to set the Gravity of the text with the Reflection library.
You could also have the text integrated in the bitmap.

Best regards.
 
Upvote 0
Top