10-15-2020, 02:49 AM
(10-14-2020, 04:47 PM)kudzu Wrote: Doing so on new session is not a good idea. SetAsMainForm is a global setting and OnNewSession is threaded. This approach will create issues and could even cause crashes.
If you want to control which form is displayed dynamically use this event on the SC instead and create an instance of the form itself and return it in the var argument:
procedure TIWServerController.IWServerControllerBaseGetMainForm(var vMainForm: TIWBaseForm);
begin
end;
Noted, thanks. I haven't used that approach, just saw it used elsewhere a while back. I will also edit the post to note this.
Dan