To discuss the OnInternPaintPar...
NOTE ON THE FORUMS: I have images linked here in this post and while they work when I preview the post, I am unable to see them on the submitted post. The pictures are vital to demonstrating the issue.
if I run this code
Canvas.RoundRect(LineData.x-79, Linedata.Y,Trunc(Par.TextAreaWidth / 1.965)+44,Linedata.Y+Par.Height,30,30); Canvas.Brush.Style := bsClear; Canvas.Font.Color := Darken(FSlideColor,64); Canvas.Font.Name := 'Arial'; Canvas.TextOut(LineData.x,LineData.y+trunc(LineData.h / 1.25)+OffSet,'SLIDE ' + inttostr(Par.HotParID)+' : '); iLeft := Trunc(Canvas.TextWidth(Par.Name)/2); Canvas.TextOut(LineData.x+(LineData.w div 2)-iLeft,LineData.y+trunc(LineData.h / 1.25)+OffSet,Par.Name);
And I do not change the canvas.font.size then it renders it once.
🖼 www.oilcreekoriginals.com
[](http://www.oilcreekoriginals.com/OverAwe/LinkedImages/One.PNG)
if I run this code
Canvas.RoundRect(LineData.x-79, Linedata.Y,Trunc(Par.TextAreaWidth / 1.965)+44,Linedata.Y+Par.Height,30,30);
Canvas.Brush.Style := bsClear;
Canvas.Font.Color := Darken(FSlideColor,64);
Canvas.Font.Name := 'Arial';
HoldSize := Canvas.Font.Size; // <-New Code
Canvas.Font.Size := 60; // <-New Code
Canvas.TextOut(LineData.x,LineData.y+trunc(LineData.h / 1.25)+OffSet,'SLIDE ' + inttostr(Par.HotParID)+' : ');
iLeft := Trunc(Canvas.TextWidth(Par.Name)/2);
Canvas.TextOut(LineData.x+(LineData.w div 2)-iLeft,LineData.y+trunc(LineData.h / 1.25)+OffSet,Par.Name);
Canvas.Font.Size := HoldSize; // <-New Code
And I do change the canvas.font.size and restore it when done then it renders it twice, the second time just below.
Interesting and possible important point: The second duplicate line of text if it is up close enough to the blue rectangle we draw, then it will appear behind it.
🖼 www.oilcreekoriginals.com
[](http://www.oilcreekoriginals.com/OverAwe/LinkedImages/Two.PNG)