Eduardo Elias
Eduardo Elias

Reputation: 1760

Changing Task Manager Application Name in FMX

When Loaded a FMX application displays the exe name on the Task Manager:

Task Manager with showing my application NaharFMX

However I can have many of these applications loaded (they are called from another application) and I would like to differentiate them by a context, in my case adding the User Name to it.

Application.Title does not do the trick (actually only changes the title for the icon on the taskbar)

EDIT: to make even clearer my question, I need that the change to be made during run-time, since I do not know previously which user will be connected. The title will be according the User.

EDIT 2: While the explanation of REMY is very good it led me to take a closer look to how my app is running:

Task Manager

As you see there is no sub tasks available. This is a Server running ThinFinity that is a kind of RDP for application, the app screen is rerouted thru the user´s browser.

The problem here is that I don´t know in this server who is using which application, or if the application went rogue, the Task Manager would be a very easy way to see that. (btw I can see who is connected on the DB server, or in the front end http server, but I cant trace who is who in this server)

Upvotes: 1

Views: 1654

Answers (2)

Remy Lebeau
Remy Lebeau

Reputation: 595971

The main entry for an app displays the FileDescription value from the app's version info resource, if present, otherwise it displays the filename. Thus, this text is static and can't be changed at runtime. This is displaying the name of the app.

However, when you expand an app, it displays the app's actual visible windows, and those sub-entries display whatever text is in their title bars. For a TForm window, that text comes from the TForm.Caption property, which you can change dynamically at runtime.

task manager

You can have multiple instances of the app running, which will have the same app name, but can display different window titles.

multiple instances running

Upvotes: 3

Vuio
Vuio

Reputation: 140

You must change File Description in Project Options. Go to Project > Options > Version Info > Find FileDescription and change it into name that you want > OK

Save and run you app ... enter image description here

Upvotes: 3

Related Questions