advr.hlp (Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
Caption Property Details
  Summary  Details  Example                Contents  Index  Back
──────────────────────────────────────────────────────────────────────────────
 [form.][ctlname.]Caption[ = stringexpression$]
 
 Usage Notes
   ■ When you create a new object, the default Caption property is the same
     as the default FormName property (for a form) or the default CtlName
     property (for a control - for example, Form1, Label1, and Command1).
     However, captions can differ from an object's FormName or CtlName
     property; you can label forms and controls more descriptively.
 
   ■ A form's title bar display depends on the BorderStyle property setting.
     A form cannot display a caption when its BorderStyle property is set
     to 0. See: BorderStyle Property
 
   ■ A caption that is too long for the form or control's title bar is
     clipped on the right.
 
   ■ To assign an access key to a control, include an ampersand (&) in the
     control's caption immediately preceding the character that you want to
     appear highlighted at run time. To insert an ampersand in the caption,
     precede it by another ampersand (for example, "&&"). The color of the
     highlighted character can be set by defining the ACCESSKEY_FORECOLOR
     constant. See: ACCESSKEY_FORECOLOR Constant  Access Keys
 
   ■ To automatically resize a label control to fit its caption, set AutoSize
     to True (-1). See: AutoSize Property  Label Control