Caption Property (Form object)

Gets or sets the text of the form's title bar.

object.Caption = [string]

Where object is an object expression that evaluates to one of the controls in the Applies To list, and string is a string expression specifying the display text.

Client support

   Newlook Smartclient

   Newlook Server

Use

There are two ways to specify the text to display in the title bar of the Smartclient window.

  1. Enter text in the Caption options in General Rules to set a global caption for all screens in your application.
  2. To specify title bar text for individual screens, set the Caption property for the relevant Form object.

When setting the caption property for Form objects, the following substitution parameters can be used, which will be resolved by Newlook at run-time.

Parameter

Description

&i

Returns the current session ID.

&n

Returns the current connection name.

&t

Returns the current screen title (as specified for the form in Identify).

If the Caption property for a form is blank, then the Caption Title defined in General Rules will be used.

See Also

Message property | Text property | Variable property | Caption property (Controls)

Applies To

Form object


© 2004-2021 looksoftware. All rights reserved.