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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...