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 define the display color (background color of a text, circle, rectangle, ...).
WINDEVUniversal Windows 10 AppAndroidiPhone/iPadIOS WidgetMac Catalyst In a window, this sequence of characters is used to define the background color of a text or shape (rectangle or circle):
  • in an element found in a List Box or Combo Box control.
  • WINDEV in the title bar and/or status bar of a window.
  • in a Static control.
Remark: To use a gradient color, call gBackgroundGradient.
Example
WINDEV
// Add the word "Yellow" on a yellow background into "LIST_ColorList"
ListAdd(LIST_ColorList, gBackground(LightYellow) + "Yellow")
Syntax
<Result> = gBackground(<Color>)
<Result>: Character string
Sequence of characters defining the background color of the text, circle, rectangle, ...
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 Webservice consumed by a WINDEV or WINDEV Mobile application.
<Color>: Integer or constant
Display color for the background of the text or for the inside section of a shape (rectangle or circle). This color can correspond to:
  • an RGB color (returned by RGB),
  • an HSL color (returned by HSL),
  • a WLanguage preset color.
  • the Transparent constant (used to overlay a text and a graphic for example).
Component: wd290mdl.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/07/2022

Send a report | Local help