TitleBarSetTitle

Syntax

Success = TitleBarSetTitle(Widget, Text$)

Description

Updates the text content of a title bar widget previously created with CreateTitleBar().

Parameters

Widget
The handle of the title bar widget.

Text$
The new string to display.

Return Value

Returns #True on success, #False otherwise.

Remarks

If the TitleBar is attached to a standard ProGUI window hierarchy, the title automatically syncs with WindowSetTitle(). Use this function if you are maintaining detached or custom TitleBar implementations.

See Also

CreateTitleBar, WindowSetTitle

Supported OS

Windows, Linux