dalpiaze Posted August 12, 2011 Share Posted August 12, 2011 How to create a "Custom Stand-Alone Server" ? I created a Delphi project using a standard TForm... OK. Then I used the TUniForm's and ServerModule / MainModule... OK When I run the project, it works fine (on WebBrowser), but one session is started automatically when the program runs (in VCL mode - win32). I would like that the project just runs on the web browser, and in the console (vcl/win32) just show a single standard TForm. Any suggestions ? Thanks. Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted August 12, 2011 Administrators Share Posted August 12, 2011 Try this: ServerModule->StandAloneServer->True Link to comment Share on other sites More sharing options...
dalpiaze Posted August 13, 2011 Author Share Posted August 13, 2011 Try this: ServerModule->StandAloneServer->True Yes, I had already used this property, but using this the application automatically uses a tray icon and a pre-defined form with some info about the connections. I would like to have my custom TForm without tray icon. Link to comment Share on other sites More sharing options...
dalpiaze Posted August 14, 2011 Author Share Posted August 14, 2011 I did the following: 1. Created a uniGUI project "VCL app/Standalone Server" 2. Added a new TForm. 3. Removed in project source the line that start the ServerModule, adding the line that create the default TForm. 4. Included in OnCreate of TForm(application main form) the line: "TUniServerModule.Create(Application);" 5. Set UniServerModule.StandAloneServer = True. OK Until here, the application works fine as web server, but displaying the default tray icon and showing the form with uniGUI values. To get rid of the Tray Icon and the form, i did: "uniguiservercp.ServerControlPanelForm.Free;" It work's! The application works as web server, with my personal Main Form. But the problem is that the tray icon appears and disappears when the application runs. Of course! It's because the "ServerControlPanelForm" being created and then immediately destroyed. Would it have any way to prevent the creation of this panel? Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted August 15, 2011 Administrators Share Posted August 15, 2011 I will add a solution in future versions. Logged #1120 Link to comment Share on other sites More sharing options...
dalpiaze Posted August 15, 2011 Author Share Posted August 15, 2011 I will add a solution in future versions. Logged #1120 OK, thanks! Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now