Home Different behavior of form resizing from Delphi 10.0 Seattle to 10.2.2 Tokyo
Reply: 0

Different behavior of form resizing from Delphi 10.0 Seattle to 10.2.2 Tokyo

user841
1#
user841 Published in April 26, 2018, 5:12 pm

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?

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.2889 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO