How to remove autogenerate code;

when create a gui component ,projucer auto generate
g.fillAll (Colour (0xffefefef));
and that’s can’t remove when save the project .
how can i just remove this quickly?thanks

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

//g.fillAll (Colour (0xffefefef));

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

I comment ,and when save project,it then appears again

I don’t know for sure as I don’t use the auto-generated files, but I believe that whole file is regenerated each time you save & that the only way to change that is to remove the commented-out stuff at the bottom of the file. That will, of course, stop the legacy gui editor from working, though.

Alternatively, you could just write g.fillAll… after that between the UserPaint tags.

To prevent that fillAll function from being called, in Projucer, try setting the component color to 0x00000000. I think that having an alpha of 0 causes Projucer to skip adding that line.

yes,you are quite right absolutely…thanks