Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to change the main project form
#4
I'm not using this, but I've seen others mention setting during session start:


Code:
procedure TApplServer.IWServerControllerBaseNewSession(ASession: TIWApplication);
begin
   ASession.Data:=TApplSession.Create(nil, ASession);

//   if ASession.Browser.IsMobile then TMyMobileForm.SetAsMainForm else TMyStandardForm.SetAsMainForm;
end;

EDIT NOTE: See Kudzu comments below, setting main form in NewSession is NOT recommended and may cause problems.

Dan
Reply


Messages In This Thread
RE: How to change the main project form - by DanBarclay - 10-14-2020, 06:33 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)