Jump to content
Ian Branch

Mainform won't change width...

Recommended Posts

Hi Team,

D12.

What would/could prevent me being able to widen my MainForm?

There are no Constraints and the form is sizable.

It is a Normal form.

I can change the height OK, but not the width.  😞

Any thoughts/suggestions appreciated.

 

Regards & TIA,

Ian

Edited by Ian Branch

Share this post


Link to post

More information would help - lots of places such code could hide.  One place would be in FormCanResize but it could be elsewhere - likely includes width in some form so search for that.

procedure TForm1.FormCanResize(Sender: TObject; var NewWidth, NewHeight:
    Integer; var Resize: Boolean);
begin
   NewWidth := (Sender as Tform).Width;
end;

 

Edited by Brian Evans

Share this post


Link to post

Hi Brian,

I could be wrong, this is not in code, this is in the IDE at Design time.

 

Ian

Share this post


Link to post

Found it!  One of the components on the form ahd constraints for some reason.

All fixed now.

Thanks to all for your input.

 

Regards,

Ian

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

×