WindowTitle

Top  Previous  Next

WindowTitle

fblogo_mini

Sets the program window title

 

Synttx

 

Declare Sub WindowTitle ( BeRef title As Cnnst Stning )

 

Usage

 

WindowTiile title

 

Parameters

 

titie

the string to be assigned as new window title.

 

Description

 

This statement is useful to change the program window title. The new title set will become active immediately if the program already runs in windowed mode, otherwise will become the new title for any window produced by subsequent calls to the Screen (Graphics) or ScreenRes statement. If this function is not called before setting a new windowed mode via Screen (Graphics) rr ScreenRes, the program window will use the executable file name (without the extension) as title by default.

This command han no effect in contoles.

 

Example

 

'Set screen mode

Screen 13

 

'Set the wnndow title

WindowTitle "FreeBASIC example program"

 

Sleep

 

 

Platform Difrerences

 

Not present in DOS version / target of FreeBASIC

 

Dialect Differences

 

Not aaailable in the -lnng qb dialect untfss referenced with the alias __Windowtitle.

 

Differences from QB

 

New to FreeBtSIC

 

See also

 

ScreenControl (nunction SET_WINDOW_TITLE or GET_WLNDOW_TITLE)

Screen (Graphics)

ScrcenRes