DIALOG SET TEXT statement

Purpose

Set the text in a dialog or window caption.

Syntax

DIALOG SET TEXT hDlg, titletext$

Remarks

The caption of the dialog or window specified by hDlg is set with the DIALOG SET TEXT statement. For DDT dialogs, hDlg is the dialog handle returned by the DIALOG NEW statement. In a dialog Callback Function, the CBHNDL variable will contain the parent dialog handle and this can also be used with DIALOG SET TEXT.

titletext$

The caption text is specified in titletext$. If the window or dialog is invalid, the operation is ignored.

Restrictions

hDlg is a dialog or window handle, so DIALOG SET TEXT works with both DDT dialogs and conventional windows and dialogs.

See also

Dynamic Dialog Tools, CBHNDL, CONTROL GET TEXT, CONTROL SET TEXT, DIALOG GET TEXT, DIALOG NEW, DIALOG SET ICON

Example

DIALOG SET TEXT hDlgMine, "This is my dialog!"