mmx110 Posted August 7, 2016 Share Posted August 7, 2016 Hi forum! how to makes MainForm Maximized at the creation time I want it opens fitted to screen width at the first time and not showing and do maximization event Thanks and Regards Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted August 8, 2016 Share Posted August 8, 2016 Go to uniservermodule and set MainFormDisplayMode:=mfPage Link to comment Share on other sites More sharing options...
mmx110 Posted August 8, 2016 Author Share Posted August 8, 2016 Hi Hayri! But there is Maximization effect in this mode too all objects shows at its normal state first, then maximized and aligned! I want to user not see this period and at onshow its aligned correctly and fitted to browser screen... Thanks and Regards! Link to comment Share on other sites More sharing options...
erich.wanker Posted August 9, 2016 Share Posted August 9, 2016 Hy, i put all Content of MainForm in one UniContainerpanel1 .. visible false... procedure TMainForm.UniFormScreenResize(Sender: TObject; AWidth, AHeight: Integer); begin uniTimer3.Enabled:=true; //sende_resizing; end; Timer3 --> Intervall 500 // RunOnce ... procedure TMainForm.UniTimer3Timer(Sender: TObject); begin UniContainerPanel1.top:=r_oben; UniContainerPanel1.left:=r_links; UniContainerPanel1.Width:=Width-(r_links+r_rechts); UniContainerPanel1.Height:=Height-(r_oben+r_unten); UniContainerPanel1.Visible:=true; end; HTH Erich Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted August 9, 2016 Administrators Share Posted August 9, 2016 MainForm->WindowState->wsMaximized Link to comment Share on other sites More sharing options...
erich.wanker Posted August 9, 2016 Share Posted August 9, 2016 ..to kill the "maximized"-effect - i prefere a Timerbased solution ;-) 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