SetWindowTitle()

Syntax

SetWindowTitle(#Window, Title$)
Description
Changes the text which is currently displayed in the window title bar.

Parameters

#Window The window to use.
Title$ The new title to set.

Return value

None.

Remarks

GetWindowTitle() can be used to get the current window title.

Example

  If OpenWindow(2, 100, 100, 200, 100, "My cool title")
    SetWindowTitle(2, "Even cooler title !")
    
    Repeat
    Until WaitWindowEvent() = #PB_Event_CloseWindow
  EndIf

See Also

GetWindowTitle()

Supported OS

All

<- SetWindowState() - Window Index - SmartWindowRefresh() ->