VirtualStringTree + Frame crash in 144PPI, if DesignTimePPI wasn't settled in .lfm
Enviroment
- Lazarus 2.0.12 r64642 FPC 3.2.2 i386-win32-win32/win64
- Monitor resolution setting 150% (144PPI).
Problem
The VirtualStringTree grid doesn't work with Frames, if .lfm there is no DesignTimePPI for the frame.
When I open the Frame unit, I got this:
Exception class : EInvalidOperation
Exception message : Control 'Frame1' has no parent window
It only happens in Forms, not in Frames.
Steps to reproduce
- change resolution to 150%
- open Lazarus
- create a new Desktop project
- add a Frame (unit2.Frame1); add a TVirtualStringTree
- on Form1, add a TFrame and choose Frame1
Everything works.
- close Lazarus
- open unit2.lfm in a text editor
- remove
DesignTimePPI = 144
- open Lazarus
- open the project
Show me the code
Issues related
Edited by Marcos Douglas B. Santos