I installed the new Delphi 10.2.2 Tokyo and started to move my projects over to it.
I found the following strange behavior in a Windows desktop application.
I have a Form with a size of 700x545. To prevent the user from resizing it, I use the OnCanResize
event and set the Resize
parameter to False.
In the OnCreate
event, I set the desired Width
/Height
values. With Delphi 10.0 Seattle, it works well, but in 10.2.2 the size is set to 340x220 instead.
Obviously, it is set before the OnCreate
event, because my changes in the OnCreate
event are ignored, maybe because of my OnCanResize
event.
In design time, I find the correct values in the Object Inspector.
Any ideas?