Frederick Posted July 6, 2020 Share Posted July 6, 2020 When a form's WindowState is set to wsMaximized, the form fills this client section of the browser. How do I determine the width and height of this client section of the browser when the form's WindowState is wsNormal? -- Frederick (UniGUI Complete - Professional Edition 1.90.0.1534) Quote Link to comment Share on other sites More sharing options...
Sherzod Posted July 6, 2020 Share Posted July 6, 2020 14 minutes ago, Frederick said: How do I determine the width and height of this client section of the browser when the form's WindowState is wsNormal? procedure TMainForm.UniFormScreenResize(Sender: TObject; AWidth, AHeight: Integer); begin // end; Quote Link to comment Share on other sites More sharing options...
Frederick Posted July 6, 2020 Author Share Posted July 6, 2020 I added the following code in the OnScreenResize event and whether I am resizing the browser or form, both values are zero. procedure TfrmFull.UniFormScreenResize(Sender: TObject; AWidth, AHeight: Integer); begin lblWidth.Caption:='Width: '+IntToStr(AWidth); lblHeight.Caption:='Height: '+IntToStr(AHeight); end; Am I missing something here? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted July 6, 2020 Share Posted July 6, 2020 1 hour ago, Frederick said: TfrmFull Is this your main form? Quote Link to comment Share on other sites More sharing options...
Frederick Posted July 6, 2020 Author Share Posted July 6, 2020 My bad. I was using a sub-form. It now works. Thanks. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.