Page 1 of 1

Xbase program as service in background

Posted: Thu Oct 21, 2021 11:54 pm
by Victorio
Hi,
Is possible create xbase app as service , which show in task bar on right side ? I need this to run on server where running more processes.

Re: Xbase program as service in background

Posted: Fri Oct 22, 2021 12:52 am
by Tom
Hi, Victorio.

Using the systray (right part of the task bar in most cases) is not the same as apps running as services. You can put any kind of program to the systray, but you can't put a service there. But you can create services with Xbase++. Look at the "simple service" samples, which show what to do to create this kind of application. Services may not interact with the desktop (and don't have an icon, even not in the systray), services may have different environment. The systray ("Task Notification Area") is used for running programs that don't have active windows. We use codejock to populate the systray for instance with an interactive icon for our server software, but maybe Xbase++ is able to populate the systray itself - we didn't check this for years. But I don't find "systray" in the Xbase++-help docs.

Re: Xbase program as service in background

Posted: Fri Oct 22, 2021 1:27 am
by Auge_Ohr
hi,

to use "Tray" , in lower / right, you can use TNotifyIcon() Class from Pablo Botella using Ot4xb LIB

Re: Xbase program as service in background

Posted: Fri Oct 22, 2021 1:39 am
by skiman
Hi,

We are using the following to install services.
https://nssm.cc/commands

Just create your xbase application without any user interface. It can accept parameters at startup, so you can use the same EXE for multiple different services.
Then install it from the command line with the nssm program.

Re: Xbase program as service in background

Posted: Fri Oct 22, 2021 3:13 am
by Victorio
Thanks , i will look it

Re: Xbase program as service in background

Posted: Fri Oct 22, 2021 4:10 am
by Tom
We are using the following to install services.
Xbase++ has everything on board for installing and controlling services. Just look at the samples and the ServiceController class.