ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage properties / Properties associated with windows, pages and controls
  • Limitations
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
The FontName property is used to:
  • Identify the font used in a control.
  • Change the font used in a control.
Example
// Modifier la police utilisée dans le champ "SAI_NomClient"
SAI_NomClient.PoliceNom = "Arial"
Syntax

Knowing the font used in a field Hide the details

<Result> = <Control used>.FontName
<Result>: Character string
Name of the font used in the specified control.
<Control used>: Control name
Name of the control to be used.

Changing the font used in a control Hide the details

<Control used>.FontName = <New font>
<Control used>: Control name
Name of the control to be used.
<New font>: Character string
New font used in the specified control.
Remarks

Limitations

WINDEVWEBDEV - Server codeWINDEV MobileReports and QueriesiPhone/iPad In a report, the FontName property can only be used on:
  • a URL Link control.
  • a Static Text control.
  • a Calculated control.
  • a Preset control.
WINDEVWINDEV Mobile In a window, the FontName property cannot be used on:
  • a Spin control,
  • WINDEV a Web Camera control,
  • WINDEV a Conference control.
Note: This property only applies to ListView controls in standard "List Box" display mode.
WEBDEV - Server code In a page, the FontName property can be used on:
  • a Static Text control,
  • an Edit control,
  • a Button control,
  • a Check Box control,
  • a Radio Button control,
  • a List Box control,
  • a column in a Table control,
  • a cell of a Table control (read only),
  • a formatted display control,
  • an HTML control,
  • a Combo Box control,
  • a Link control,
  • an HTML Static control,
  • a Pager control,
  • a Breadcrumb control (except in PHP),
  • a TreeView control,
  • a menu.
Java The FontName property can only be used with the following elements:
  • Button control.
  • Static Text control.
  • Combo Box control.
  • TreeView control.
  • Column of a Table control.
PHP PHP: Font files
In PHP, the files of corresponding fonts must be accessible (ttf files).
These files must be in the directory of the site (directory _WEB returned by fWebDir) and be named as follows:
  • <Name of standard font>
  • <Name of standard font>_Bold
  • <Name of standard font>_Italic
  • <Name of standard font>_Italic_Bold
Minimum version required
  • Version 9
This page is also available for…
Comments
exemplo fontName
EDT_OBSERVACAO..FontName = "Arial"
STC_NoName1..FontName = "Arial"

// BLOG COM VIDEO E EXEMPLO

http://windevdesenvolvimento.blogspot.com.br/2017/07/aula-1221-windev-dicas-035-edt-stc.html

https://www.youtube.com/watch?v=uZcjxlCQP-w

De matos
25 Jul. 2017

Last update: 10/02/2024

Send a report | Local help