WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WindowsLinuxPHPWEBDEV - Browser code
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Stored procedures
Modifies the title of current window (returned by CurrentWin) and the title bar.
Reminder: By default, the window title is the one defined in the editor.
// Replace the title of the current window
CurrentTitle(gBackground(LightRed) + gPen(Black) + "Modifying a customer form")
// Modify the title of the current window
// Adds "in progress"
CurrentTitle(EOT + gBackground(LightRed) + gPen(Black) + " in progress")

Modifying the window title Hide the details

CurrentTitle(<New window title>)
<New window title>: Character string
New title for the current window.

Modifying the title and the title bar of the window Hide the details

CurrentTitle([<Background color> [, <Text color>, ]] <New window title>)
<Background color>: Optional integer
Color used for the background of the title bar. This color can correspond to:
<Text color>: Optional integer
Color used for the text displayed in the title bar. This color can correspond to:
<New window title>: Character string
New title for the current window. If the EOT constant is specified, the new title will be added to the existing title.

Title of dialog boxes

The windows opened by Warning, Confirm, Dialog, Error, ErrorInfo, Info, OKCancel or YesNo have the same title as the previous window.
To change the title of the next window to open, use NextTitle.

Title of clipped windows

CurrentTitle can also be used to change the title of clipped windows. However, this title is not displayed in the window.
If a clipped skin template was used, the title of the window is displayed in a Static control. The content of this control is ignored by CurrentTitle. It must be modified specifically.
WINDEVReports and QueriesUser code (UMC)

Title presentation

The graphic strings management functions (starting with "g") are used to:
  • add drawings to the title,
  • modify the formatting of title (background color, text color, etc.) with gBackground and gPen.
For example: to change the text color and background color of a title:
CurrentTitle(EOT + gBackground(RGB(0, 255, 255)) + gPen(RGB(255, 0, 0)) + "Color test")
Special case in Windows Vista and 7: Windows that use the "Aero system" style cannot have a graphic title: the graphic part is ignored. If "Aero" is not enabled, the graphic title will be displayed as usual.


The following code:
CurrentTitle(<New window title>)

is equivalent to the Title property:
MyWindow.Title = <New window title
WINDEVReports and QueriesJavaUser code (UMC)

Minimized window

When a window is minimized, the title of this window is displayed beside the icon in the taskbar.
Universal Windows 10 App

Displaying the title

To display a title, the window must include an Action Bar control.
Business / UI classification: UI Code
Component: wd280obj.dll
Minimum version required
  • Version 9
This page is also available for…
Exemplo CurrentTitle
Exemplo CurrentTitle
CurrentTitle(gBackground(LightGreen) + gPen(Black) + "Janela Ensinando ")
//Blog com Video e Exemplo
17 Aug. 2016