How To Show The Copyright © Symbol In A Caption (Label, Form) In Delphi Applications
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:
Or, the unicode way:
Finally, since Delphi does know unicode, you are best to use the symbol directly:
p.s.
The same goes for the "trade mark" symbol: "?" - using ALT + "0153".
Related:
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...