ShowAccelChar (Delphi)
Description
This example uses two labels on a form. The first label has a caption with an accelerator character in it. The second label also includes an ampersand, but it does not appear as an accelerator character.
Code
procedure TForm1.FormCreate(Sender: TObject);
begin
Label1.ShowAccelChar := True;
Label1.Caption := 'An &Underlined character appears here';
Label2.ShowAccelChar := False;
Label2.Caption := 'An ampersand (&) appears here';
end;