ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Controls, pages and windows / Graphic string functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
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.
Note All text written following function is assigned.
WINDEVAndroidiPhone/iPadIOS WidgetMac Catalyst In a window, this sequence of characters allows you to use bold (or normal) text:
  • in an element of a List Box or Combo Box control.
  • in the title bar and/or status bar of a window.
  • in a Static Text control.
Example
WINDEV
// Affichage du titre "WINDEV, AGL n°1 en France." dans la prochaine fenêtre
NextTitle(gFontBold() + "WINDEV" + gFontBold(False) + ", AGL n°1 en France.")
// Affiche "WINDEV, AGL n°1 en France." dans le titre de la fenêtre FEN_FenêtreSuivante
Open(FEN_FenêtreSuivante)
Syntax
<Result> = gFontBold([<Bold>])
<Result>: Character string
Sequence of characters defining whether the text must be written in bold or not.
WINDEVAndroidiPhone/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 web service 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: wd300mdl.dll
Minimum version required
  • Version 11
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/27/2025

Send a report | Local help