ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Graphic string functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Builds a sequence of characters used to specify whether the text that follows the call to this function is in bold or not.
Remark: The entire text written after the function is affected.
WINDEVUniversal Windows 10 AppAndroidiPhone/iPadIOS WidgetMac Catalyst In a window, this sequence of characters allows you to use bold (or normal) text:
  • in an element found in a List Box or Combo Box control.
  • in the title bar and/or status bar of a window.
  • in a Static control.
Example
WINDEV
// Display the title "WINDEV, #1 in France." in the next window
NextTitle(gFontBold() + "WINDEV" + gFontBold(False) + ", #1 in France.")
// Displays "WINDEV, #1 in France." in the title of the WIN_NextWindow window
Open(WIN_NextWindow)
Syntax
<Result> = gFontBold([<Bold>])
<Result>: Character string
Sequence of characters defining whether the text must be written in bold or not.
WINDEVUniversal Windows 10 AppAndroidiPhone/iPadIOS WidgetMac Catalyst This sequence of characters can be:
WEBDEV - Server code This sequence of characters is not interpreted by the controls in WEBDEV. This function can be used to format the string returned by a WEBDEV Webservice consumed by a WINDEV or WINDEV Mobile application.
<Bold>: Optional boolean
  • True (by default) if the text that follows gFontBold should be bold,
  • False otherwise.
Remarks
  • The default font is restored after the call to the gFontXXX functions.
  • All the other characteristics of the font are kept (italics, etc.).
  • Android If the "bold" attribute is enabled in the style of the element to which the graphic string is assigned, a call to gFontBold with <Bold> set to False will not allow you to disable this attribute.
Component: wd290mdl.dll
Minimum version required
  • Version 11
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help