In the code you posted above ExtTextOutW overwrites ExtTextOut:
ExtTextOut(PaintBox1.Canvas.Handle,0,20,0, @therect, pchar(str),4,nil); ExtTextOutW(PaintBox1.Canvas.Handle,0,40,0, @therect, PWideChar(wstr),4, nil);
Did you try without ExtTextOutW?
no they don't overwrite the drawing. note they prints in different Y position.True. I did not notice the different y position.
and yes I tried to remove the ExtTextOutW call, it is really the use of windows unit causing the different.OK. Thanks for the feedback.
with windows unit, ExtTextOut prints the tick find.
without windows unit, ExtTextOut cannot print the tick.