Jump to content
Sign in to follow this  
Nicolò Blunda

Form size reduced in macOS

Recommended Posts

Posted (edited)

The MainForm BorderStyle property is now set to the sizable value and all controls are in scale Align property
When the app runs on remote macOS (low screen resolution: 1024x768 px, the form run in orginal designed size and resizes instantly to a very small size (see attachs "Original" and "Reduced")
The original form has a minimum size of 1050x1000 px, so I expect its size to be larger than the virtual Mac screen,
Is this strange behavior replicated with the high resolution Mac screen?
Is there a way to show, even on small screen sizes of the remote Mac, the form in her design-time size?
Thank you

 

 

Reduced.png

Original.png

Edited by Nicolò Blunda

Share this post


Link to post

I have find the solution.
In MyForm.Create I insert this
 

 Constraints.MinWidth := MyForm.Width;
 Constraints.MinHeight:= MyForm.Height;

Note that if MyForm.Position property is set to Designed, this affects only MyForm aspect under Windows OS and not under macOS.
 

  • Like 1

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×