Control.ScaleBy issues using to scale Form to use in high dpi modes.
Original Reporter info from Mantis: lainz
-
Reporter name:
Original Reporter info from Mantis: lainz
- Reporter name:
Description:
Paul Ishenin knows the dpi issues and ScaleBy..
Form1.ScaleBy(Screen.PixelsPerInch,96);
// 96 is the dpi when i design the form, "Screen.PixelsPerInch" another size, generaly 120 (125%) or 144 (150%)
Works fine to scale the form with all controls and subcontrols (controls inside controls) but with a problem:
- Text is sized twice!: When you set dpi to 125% or 150% MS Windows scale the font size, when you use ScaleBy the font is scaled other time..
The text is the only component must be sized by system (not sized by "ScaleBy"). All other components are scaled fine.
Additional information:
If you can size all components but text i can test it and that's all: windows high dpi with ScaleBy must work's without other sizing problems.
Mantis conversion info:
- Mantis ID: 17929
- Version: 0.9.29 (SVN)
- Monitored by: » zaher (Zaher Dirkey)