Jucer always generate g.fillAll()


#1

Hi forum,

A simple question. Every time that Juce gnereates a component it insserts the following code in void xxxComponentxxx::paint (Graphics& g)

[code]
void xxxComponentxxx::paint (Graphics& g)
{
//[UserPrePaint] Add your own custom painting code here…
//[/UserPrePaint]

 g.fillAll (Colours::white);

//[UserPaint] Add your own custom painting code here..
//[/UserPaint]

}[/code]

How can I avoid that always insert g.fillAll (Colours::white)?

Gabriel


#2

Just give it a transparent background colour.


#3

Honestly, Jules, your code is amazing.

Gabriel