SetWindowTitle()

Syntax

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

Example:
  If OpenWindow(2, 100, 100, 200, 100, "My cool title")
    SetWindowTitle(2, "Even cooler title !")
    
    Repeat
    Until WaitWindowEvent() = #PB_Event_CloseWindow
  EndIf
The actual window title can later be get with GetWindowTitle().

Supported OS

All

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