mierlp Posted March 2, 2013 Share Posted March 2, 2013 Hi, Is there a way to position a panel (horizontal and vertical) on the center of the screen. I can'nt get by information panel (see attachment with red square) centered. Settings ServerModule.MainFormDisplayMode = mfPage MainForm.WindowsState = wsMaximized BorderStyle = bsSingle Panel.Allign = None Panel.Alignment = taCenter Quote Link to comment Share on other sites More sharing options...
albertovesx Posted March 2, 2013 Share Posted March 2, 2013 try to put the panel in the center in design time and then set all anchors to false. Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted March 2, 2013 Administrators Share Posted March 2, 2013 Anchors = [] Quote Link to comment Share on other sites More sharing options...
Amaury Posted August 2, 2013 Share Posted August 2, 2013 Another Way: unipanel1.left := (uniform1.with div 2) - (unipanel.with div 2); unipanel1.top := (uniform1.heigth div 2) - (unipanel.heigth div 2); 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.