B4J Question Server app: Form.Showing, minimized state

peacemaker

Expert
Licensed User
Longtime User
HI, All

If to make a server UI app, it should
1) show on a form its working state, for debugging, setting up... here app periodically updates views on a form
2) but when minimized (or started as a service on a Server OS) - it's better to check this app\form state and do not make views updates, to save the processor time.

Form.Showing property does not help here - it's always True, if even minimized form.

So questions:
1) How to check real form state ?
2) How to check if current state is the service working mode ?
3) How to start app minimized as a service mode ?
 

peacemaker

Expert
Licensed User
Longtime User
real server, created with jServer
No, here i meant a MS server OS version and B4J UI app that should work as a service (with auto-start if PC was rebooted), and sometimes, periodically it needs extra manual set up, but using UI. And updating views on form is rather costly for processor time
 
Upvote 0

peacemaker

Expert
Licensed User
Longtime User
jSystemTray to run your app without a form
But where should be placed all code that now is in Form module ? This code creates instants of other non-UI classes...
 
Upvote 0

peacemaker

Expert
Licensed User
Longtime User
Thanks, Erel. But if the app structure was used basing on B4XPages - it needs to remake it back to simple UI app moving the B4XMainPage code to Main module ?
 
Upvote 0

peacemaker

Expert
Licensed User
Longtime User
jSystemTray to run your app without a form, and show the form when needed.
Yes, it works ! I remade the app to start without UI, but sys tray icon to open the form, and menu for exit.
But this does not help to use it under server OS: the scheduler does not start it anymore at PC start automatically, and app cannot work as a service - it exits just after start.
 
Upvote 0
Top