PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Title of dialog boxes
  • Title of clipped windows
  • Presentation of title
  • Equivalence
  • Minimized window
  • Displaying the title
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
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.
Versions 15 and later
Android This function is now available for the Android applications.
New in version 15
Android This function is now available for the Android applications.
Android This function is now available for the Android applications.
Versions 16 and later
WINDEVLinux This function is now available for the WINDEV applications in Linux.
New in version 16
WINDEVLinux This function is now available for the WINDEV applications in Linux.
WINDEVLinux This function is now available for the WINDEV applications in Linux.
Versions 17 and later
iPhone/iPad This function is now available for the iPhone/iPad applications.
New in version 17
iPhone/iPad This function is now available for the iPhone/iPad applications.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Versions 18 and later
Android Widget This function is now available in Android Widget mode.
New in version 18
Android Widget This function is now available in Android Widget mode.
Android Widget This function is now available in Android Widget mode.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Example
// 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")
Syntax

Modifying the window title Hide the details

CurrentTitle(<New Window Title>)
<New Window Title>: Character string (with quotes)
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 corresponds to:
<Text Color>: Optional integer
Color used for the text displayed in the title bar. This color corresponds to:
<New Window Title>: Character string (with quotes)
New title for the current window. If the EOT constant is specified, the new title will be added to the existing title.
Remarks

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 modify the title of the next window to open, use NextTitle.
WINDEV

Title of clipped windows

CurrentTitle can also be used to modify the title of the 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 QueriesWindows MobileUser code (UMC)

Presentation of title

The functions for handling graphic strings (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 modify the text color and the background color of title:
CurrentTitle(EOT + gBackground(RGB(0, 255, 255)) + gPen(RGB(255, 0, 0)) + "Color test")
Special case in Windows Vista and 7: The windows that is using 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.

Equivalence

The following code:
CurrentTitle(<New Window Title>)
is equivalent to ..Title
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.
Components
WINDEVReports and Queries wd230obj.dll
Windows Mobile wp230obj.dll
Java wd230java.jar
Linux wd230obj.so
Android wd230android.jar
Minimum required version
  • Version 9
This page is also available for…
Comments
Exemplo CurrentTitle
Exemplo CurrentTitle
CurrentTitle(gBackground(LightGreen) + gPen(Black) + "Janela Ensinando ")
//Blog com Video e Exemplo
http://windevdesenvolvimento.blogspot.com.br/2016/08/curso-windev-funcoes-windowsjanela-002.html
https://www.youtube.com/watch?v=8fw_ggyJXQI
De matos AMARILDO
Aug. 17 2016