SQLDBRest UI demos double their restored form sizes on High DPI
Original Reporter info from Mantis: PascalDragon @PascalDragon
-
Reporter name: Sven Barth
Original Reporter info from Mantis: PascalDragon @PascalDragon
- Reporter name: Sven Barth
Description:
The UI demos contained in the SQLDBRest package ($LazarusDir/components/sqldbrest/demo/[bufclient,csvclient,jsonclient]) all show the same strange behavior when run multiple times on a High DPI system: their form sizes double.
When looking at the ini files generated by the TIniPropStorage this is indeed true (the sizes/positions double). However I can't reproduce this with a simple example that only has a property storage with the form's Left, Top, Width and Height properties added as SessionProperties.
Steps to reproduce:
Note: this was only tested on a High DPI system!
- open one of the three *client demos of the SQLDBRest package (only weblaz package should be needed to open these)
- run the demo (and notice the size and position of the form
- close the demo (maybe look at the generated *.ini file to confirm the form size/position)
- run the demo again
Expected result:
- form as the same size as before
Actual result:
- size of the form is doubled
Mantis conversion info:
- Mantis ID: 35808
- OS: Windows NT
- OS Build: 10
- Build: 61508
- Platform: X86_64
- Version: 2.1 (SVN)