Richtextbox using EM_SETZOOM to set a zoom factor vs GDI and GDI+

  • Thread starter Thread starter Just Me
  • Start date Start date
J

Just Me

Using a Richtextbox I use EM_SETZOOM to set a zoom factor.

If I set it to 2 the image on the screen increase but not exactly by 2.

I've coded a ruler above the Richtextbox which does scale by the correct
amount.

Could it be that the Richtextbox uses GDI while Dotnet uses GDI+ ?

Can anyone shed any light at all on this?


I'd really appreciate any info at all.

THANKS IN ADVANCE
 
I found that it is not the difference between the ruler and the RTB.

Rather, the RTB is not consistent. If I use tabs to position characters and
right below use spaces to position characters, and then scale, the
characters do not remain lined up.

The tabbed characters remain aligned with the ruler but the spaced ones do
not.

Seem the space (and maybe other characters) gets scaled wrong.

Can anyone add or confirm or enlighten?
 
I had not noticed that. This is left over from a pre-net project
I'll bet the RTB zoom woks no better.

Thanks
 
Back
Top