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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...