1. Technology

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

By April 3, 2012

Follow me on:

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 ';

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


April 4, 2012 at 1:44 pm
(1) PCPgmr says:

FYI, not only will the ALT+Keypad work for what is indicated by any ASCII character.

April 27, 2012 at 4:24 pm
(2) G8CAU says:

Ops . . .

ALT 169 will produce . .
For its ALT 0169. .

John aka G8CAU

Leave a Comment

Line and paragraph breaks are automatic. Some HTML allowed: <a href="" title="">, <b>, <i>, <strike>

©2014 About.com. All rights reserved.