TitleW Command

Purpose

Writes a string on the title line of a window.

Syntax

TitleW [#] n, txt$

wh:integer or Handle expression
txt$:sexp

Description

TitleW #n writes the string txt$ on the title line of the window n. n can have the values of 0 to _maxInt.

For a form created without a window number, TitleW takes its window handle from the hWnd property.

Example

TitleW # 1, " GFA-BASIC window "

OpenW # 1, 10, 10, 200, 100, -1

OpenW 2, 10, 120, 300, 100, -1

Win_2.Caption = " GFA-BASIC window "

Remarks

Windows opened with a number above 31 are accessed using the name Form(number). For instance, OpenW 40 is used as Form(40).Activate and the events have the format Sub Form_Activated(Index%) where Index% the number of the form specifies.

See Also

SizeW, CloseW, MoveW, TopW, FullW, ClearW, OpenW

{Created by Sjouke Hamstra; Last updated: 25/10/2014 by James Gaite}