03-10-2020, 09:14 AM
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
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