PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Title of dialog boxes
  • Presentation of title
  • Equivalence
  • 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 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 next window to open, use NextTitle.
Windows Mobile

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>
Universal Windows 10 App

Displaying the title

To display a title, the window must include an Action Bar control.
Business / GUI classification : GUI Code
Component : wd240obj.dll
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