Jump to content

Recommended Posts

Posted

Hi,

 

i have unipanel on the main form. i want unipanel is mainform center.

 

i write main form onshow  event;

 pnlSonuc.Left    := trunc((screen.Width - pnlSonuc.Width)/2) ;

but pnlsonuc not screen center.

Posted

Test onresize event

 

procedure TMainForm.UniFormResize(Sender: TObject);
begin
  UniPanel1.Left := (Self.Width - UniPanel1.Width) div 2;
  UniPanel1.Top := (Self.Height - UniPanel1.Height) div 2;
end;
Posted

Hi,

In my case I only adjust Anchors and selecting the UniPanel I pressed Center Horizontally button on Delphi and voila !!!! UniPanel walk to the center on resize event in my browser.

  • Like 1

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