Jump to content

How to set form width is the width of the browser?


yxzzjg

Recommended Posts

How to set unigui form in the form to create an event in the width of the browser's width it?

 

 

 

procedure TMainForm.UniFormCreate(Sender: TObject);
begin
Self.Width:=Self.Width;
end;

 

 

 Written is wrong!  thank you!

 

check -->  form.monitorscreenresize= enabled

 

procedure TMainForm.UniFormScreenResize(Sender: TObject; AWidth,  AHeight: Integer);
begin
  Self.Left:= 0;
  Self.Width:= AWidth;
end;
Link to comment
Share on other sites

 

检查 - > form.monitorscreenresize =启用

 

程序TMainForm.UniFormScreenResize(发件人:TObject的; AWidth,  A高:整数);
开始
  Self.Left:= 0;
  Self.Width:= AWidth;
结束;

 

 

ldb68, ok,thank you very much

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...