verisu Posted May 18, 2011 Share Posted May 18, 2011 Can somebody help me? Sorry for this meaningless question, but how can i determine the center of the iexplorer windows, if the the server is in a mfPage mode? I want to place a panel in the center of the iexplorer. Thank you for your answer. Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted May 18, 2011 Administrators Share Posted May 18, 2011 Can somebody help me? Sorry for this meaningless question, but how can i determine the center of the iexplorer windows, if the the server is in a mfPage mode? I want to place a panel in the center of the iexplorer. Thank you for your answer. See ScreenSize Demo: procedure TMainForm.UniFormScreenResize(Sender: TObject; AWidth, AHeight: Integer); begin UniLabel1.Caption:='Screen Size is = '+Format('%d x %d', [AWidth, AHeight]); end; Screen center = (Width / 2 , Height / 2) Quote Link to comment Share on other sites More sharing options...
verisu Posted May 18, 2011 Author Share Posted May 18, 2011 Thank you very much , Farshad. Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted May 18, 2011 Administrators Share Posted May 18, 2011 Easier method: Put a UniPanel in center of your Form. In Object inspector Set Panel.Anchors to [ ]. Regardless of screen size Panel will always remain in the center. 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.