Jump to content

How To Measure The Height And Width Of The Boxed Area (In Orange) Of The Browser?


Frederick

Recommended Posts

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)
 

howtoheightwidth.png

Link to comment
Share on other sites

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;

 

Link to comment
Share on other sites

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?

 

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...