What is the recommended way to ensure that the mainform is fully maximized and all controls are redrawn before showing a modal form on application first load?
I need to show a modal dialog when the application starts (not a login screen) but if I set the form to wsMaximized
whilst the screen maximizes, the controls do not have chance to redraw and you are left with an ugly mess.
I show the modal screen at present using the following:
procedure TForm1.FormActivate(Sender: TObject);
var
frmOrderLookup:TfrmOrderLookup;
begin
onactivate := nil;
frmOrderLookup:=TfrmOrderLookup.Create(nil);
try
frmOrderLookup.showmodal;
finally
frmOrderLookup.Free;
end;
end;