robinhodemorais Posted February 12, 2022 Share Posted February 12, 2022 Good night, at login I put a panel with the fields, I need this panel to be centralized, but I am not getting it, I tried this way. procedure TfrmLogin.UniLoginFormScreenResize(Sender: TObject; AWidth, AHeight: Integer); begin pnLogin.top := (Self.Height div 2) - (pnLogin.height div 2); pnLogin.left := (Self.Width div 2) - (pnLogin.width div 2); end; Quote Link to comment Share on other sites More sharing options...
Sherzod Posted February 12, 2022 Share Posted February 12, 2022 Hello, Are you using Client-side alignment? Quote Link to comment Share on other sites More sharing options...
robinhodemorais Posted February 12, 2022 Author Share Posted February 12, 2022 13 hours ago, Sherzod said: Hello, Are you using Client-side alignment? Yes Quote Link to comment Share on other sites More sharing options...
Sherzod Posted February 13, 2022 Share Posted February 13, 2022 17 hours ago, robinhodemorais said: On 2/12/2022 at 6:39 AM, Sherzod said: Hello, Are you using Client-side alignment? Yes In this case, you must use the Layout, LayoutAttribs properties of the form and panel. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.