Rounded TextEditor (Look n Feel)



I would like to make the TextEditor round.

I am overriding LookAndFeel::drawTextEditorOutline(…) and I have a question:
The border of the TextEditor is first drawn using drawRect and the bevel is then added using drawBevel.

Changing drawRect to drawRoundedRectangle is easy, but what about the bevel? Replacing the bevel with another rectangle results in a very poor control.

Is there any way to properly add bevel to a rounded rectangle?