Text Button


#1

Can anyone guide me as how to add an image to the Text Button


#2

Use an ImageButton.


#3

The Juce demo has plenty of buttons…


#4

The juce demo has plenty of buttons ... but none of the is an image button with text iside it ... which is pretty common thing!!

The imageButton doesnt alow to print text inside it, or at least i could achieve that !!

what is the simple way of making an imageButton with text inside  ?

 


#5

Maybe a DrawableButton would be better, as that can contain any kind of Drawable, e.g. a combination of image + text + whatever else you want.

Or just draw your own custom button. The ImageButton is designed to just do what it says on the tin, i.e. draw an image.