Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to change the main project form
#7
(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
Reply


Messages In This Thread
RE: How to change the main project form - by DanBarclay - 10-15-2020, 02:49 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)