Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Dynamic setting of main form
#2
Hi Kevin,
try the following:

implementation {of TIWServerControllerBase}
uses
MyMobileForm, MyStandardForm;

and

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

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

Regards
Lorbass
The way to success is always under construction ... but i see a light at the end of the tunnel  Idea Big Grin
Reply


Messages In This Thread
Dynamic setting of main form - by KMMagic - 03-09-2020, 10:07 PM
RE: Dynamic setting of main form - by Lorbass - 03-10-2020, 09:14 AM
RE: Dynamic setting of main form - by KMMagic - 03-10-2020, 03:59 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)