Главная страница | назад





Article #15807: Using Ampersands inside Delphi.

 Question and Answer Database
FAQ807D.txt Using Ampersands inside Delphi
Category :VCL
Platform :All
Product :All 32 bit
Question:
How can I make a Window control's text property contain an
ampersand character?
Answer:
Use two ampersand characters. The Windows default text handling for
controls interprets a single Ampersand character as meaning the next
character is a hot key.
Example:
Button1.Caption := 'This && That';
7/16/98 4:31:28 PM

Last Modified: 21-MAR-00