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.
Xbase program as service in background
Re: Xbase program as service in background
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.
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.
Best regards,
Tom
"Did I offend you?"
"No."
"Okay, give me a second chance."
Tom
"Did I offend you?"
"No."
"Okay, give me a second chance."
Re: Xbase program as service in background
hi,
to use "Tray" , in lower / right, you can use TNotifyIcon() Class from Pablo Botella using Ot4xb LIB
to use "Tray" , in lower / right, you can use TNotifyIcon() Class from Pablo Botella using Ot4xb LIB
- Attachments
-
- TaskBarIcon.zip
- need Ot4xb
- (5.61 KiB) Downloaded 443 times
greetings by OHR
Jimmy
Jimmy
Re: Xbase program as service in background
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.
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
Thanks , i will look it
Re: Xbase program as service in background
Xbase++ has everything on board for installing and controlling services. Just look at the samples and the ServiceController class.We are using the following to install services.
Best regards,
Tom
"Did I offend you?"
"No."
"Okay, give me a second chance."
Tom
"Did I offend you?"
"No."
"Okay, give me a second chance."