简体   繁体   中英

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.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM