Axs
Axs

Reputation: 805

How to display a check mark or tick mark using unicode characters in inno setup

enter image description herei want to display a check mark or tick mark using ascii or unicode characters set. i have the following code

procedure InitializeWizard;
var
 Value: Integer;
begin
Value:=10004
Msgbox('The character is'+chr(Value),mbinformation,mb_ok);
end;

But that check mark or tick mark is not displayed..

please help me on this .

Upvotes: 1

Views: 1203

Answers (1)

TLama
TLama

Reputation: 76693

The CHECK MARK character has the 0x2713 hexadecimal ordinal value for UTF-16 encoding in Unicode table, so you can write what you want this way:

[Setup]
AppName=My Program
AppVersion=1.5
DefaultDirName={pf}\My Program

[Code]
procedure InitializeWizard;
var
  C: Char;
begin
  C := #$2713;
  Msgbox('The character is: ' + C, mbInformation, MB_OK);
end;

Upvotes: 3

Related Questions