bitbtn Caption property
Return to Introduction  Previous page  Next page
Applies to
acBitBtn, acButton, acCheckGroupBox and acRichLabel components (to all visible controls, in general)  

property Caption: String;  

The Caption property specifies the text for the button.  
To separate the lines in the multiline caption set WordWrap to True, and use linebreaks (#13#10) as separators.  
To underline a character in a Caption that labels a component, include an ampersand (&) before the character. This type of character is called an accelerator character. The user can then select the component by pressing Alt while typing the underlined character. To display an ampersand character in the caption, use two ampersands (&&).  
tip If the button's glyph does not fits the buton width and shifts behind left edge, use Margin property to specify spacing between the glyph and left edge.  

See also
WordWrap property.