Rectangular button


#1

Hi,

What is the easiest way of make buttons rectangular? Looked like all the buttons in the demo have round edge.

Thanks


#2

you have the choice between the following solutions:
1- use the Jucer to design one
2- inherit from juce::Button and provide you own paintButton()
3- override drawButtonBackground() in your own custom look and feel


#3

Check out Button::setConnectedEdges(). It won’t make a ‘proper’ rectangular button (edges will have slightly different appearance), but good for a quick job.


#4