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 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. Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted March 2, 2013 Administrators Share Posted March 2, 2013 Anchors = [] 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); Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now