[Patch] Make TDataModule DPI-aware
Original Reporter info from Mantis: kluug.net @onpok
-
Reporter name: Ondrej Pokorny
Original Reporter info from Mantis: kluug.net @onpok
- Reporter name: Ondrej Pokorny
Description:
I added High-DPI support to Lazarus IDE 1.7/1.8. All components are scaled according to the current DPI settings both in design-time and run-time.
All non-visual components have to be scaled in design-time as well. For it I need a new property in TDataModule - the current DPI settings must be stored within the LFM so that scaling works fine.
Please review the attached patch. It would be great if you merged it to 3.0 fixes branch so that Lazarus 1.8.x could scale data modules correctly when FPC 3.0.4 is released.
Additional information:
Revision in Lazarus that adds support for this patch: 54932. You have build Lazarus with DataModulePPI define. See ide/sourcefilemanager.pas, search for "{$IFDEF DataModulePPI}".
Mantis conversion info:
- Mantis ID: 31813
- Version: 3.1.1
- Fixed in version: 3.1.1
- Fixed in revision: 36212 (#e11821f5)
- Target version: 3.0.4