Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I separate my Delphi Application's task bar caption from its main form caption?

I've noticed that my application title as shown on the task bar duplicates that displayed in the main form caption and has nothing to do with Application.Title. My main form caption is set programmatically with Caption := 'xxxx' and is something like:

My Fantastic Application V1.2.3.4 [Power User]

and this is faithfully reproduced (truncated) on the Taskbar. I'd really like to see only "My Fantastic Application" on the taskbar. Is this possible? I've tried setting Application.Title etc to no effect.

like image 946
Brian Frost Avatar asked Mar 13 '12 09:03

Brian Frost


1 Answers

I think you are using Delphi 2007 or above.

In your project file, make sure there is a line

Application.MainFormOnTaskbar := False;

Then your task bar caption will use Application.Title

like image 59
Justmade Avatar answered Oct 31 '22 17:10

Justmade