Paint() code generation


#1

I had a another trouble with the Jucer 1.9 generating

//[/UserPrePaint]g.fillAll (Colour (0xba7d7d7d));

instead of

//[/UserPrePaint]

g.fillAll (Colour (0xba7d7d7d));

very psychedelic results… :slight_smile:


#2

Have you got the tip? Seems to have some returns after it in the latest version here.


#3

I had a quick look:

// call these now, just to make sure they're the first two methods in the list. code.getCallbackCode (String::empty, T("void"), T("paint (Graphics& g)"), false) << "//[UserPrePaint] Add your own custom painting code here..\n//[/UserPrePaint]";

the line feed was actually missing after [/UserPrePaint]


#4

What I mean is that that’s fixed in the tip on sourceforge - I guess you’re using 1.43.


#5