ISCL is a Intelligent Information Consulting System. Based on our knowledgebase, using AI tools such as CHATGPT, Customers could customize the information according to their needs, So as to achieve

How To Show The Copyright © Symbol In A Caption (Label, Form) In Delphi Applications

4
in Characters :: The question is easy and simple: how do you add the copyright symbol "©" to a string? The string can be used for the Caption property of a Delphi control (Form, Label, and alike). The answer is as simple, but might be tricky for novice users :)

While you can find "@", "?" or "¤" on most keyboards, the "©" does not appear on mine (nor yours, I guess).

The Windows Character Map tool (you have it under Start - Accessories - System Tools), for the selected font, will display all available characters.


What's more, for the selected character you will find the "keystroke" and the Unicode value.

The keystroke for © is "0169". To get the copyright symbol in the Code Editor just hold down the ALT key and, on the numeric part of your keyboard, type "0169" - and here it is: ©!

To have it using the more geeky way, you can do:



Caption := 'The copyright symbol ' + #169;

Or, the unicode way:



Caption := 'The copyright symbol ' + #$00a9;

Finally, since Delphi does know unicode, you are best to use the symbol directly:



Caption := 'The copyright symbol ©';

p.s.
The same goes for the "trade mark" symbol: "?" - using ALT + "0153".

Related:
Source...
Subscribe to our newsletter
Sign up here to get the latest news, updates and special offers delivered directly to your inbox.
You can unsubscribe at any time

Leave A Reply

Your email address will not be published.