Jump to content

Oscar Hernández

Members
  • Content Count

    4
  • Joined

  • Last visited

Everything posted by Oscar Hernández

  1. Hello everyone, I am upgrading my projects from Delphi 10.4 to Delphi 12, and I have noticed that all my forms with BorderStyle set to bsDialog have increased in width and height by 10 pixels. The problem is that some of these forms are configured at runtime using the Width and Height properties, so in Delphi 12, they appear smaller than expected. Is there a way to prevent this, or any workaround to handle the issue? Below are some screenshots of a form in Delphi 10.4 with BorderStyle set to bsDialog, compared to the same form opened in Delphi 12.
  2. Yes, I think that we are going to change that and rely on ClientWidth/ClientHeight instead of Widht/Height. Here is the Manifest: <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3"> <asmv3:application> <asmv3:windowsSettings> <dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true</dpiAware> <dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">PerMonitorV2</dpiAwareness> </asmv3:windowsSettings> </asmv3:application> <dependency> <dependentAssembly> <assemblyIdentity type="win32" name="Microsoft.Windows.Common-Controls" version="6.0.0.0" publicKeyToken="6595b64144ccf1df" language="*" processorArchitecture="*"/> </dependentAssembly> </dependency> </assembly>
  3. Yes, it seems that Delphi 10.4 and Delphi 11+ behave differently in this aspect. Thank you for your responses.
  4. No, I am not using VCL Styles, the left side is from RAD Studio 10.4 (Sydney) and the right side is from RAD Studio 12.1 (Athens) This is a VCL Project. I have noticed that Delphi 12 styles the title bar different from Delphi 10.4 Also if the BorderStyle of the form is set to bsSizeable, the size of Client Width and Width are equals on the two IDEs but it changes when the BorderStyle is set to bsDialog. Form1 with BorderStyle set to bsDialog Delphi 10.4 (Left side) <-> Delphi 12 (Right side) Form1 with BorderStyel set to bsSizeable Delphi 10.4 (Left side) <-> Delphi 12 (Right side) Can you notice the difference?
×