PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN

  • Limitations
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
The FontName property is used to:
  • Identify the font used in a control.
  • Change the font used in a control.
Example
// Modify the font used in "EDT_CustomerName" control
EDT_CustomerName.FontName = "Arial"
Syntax

Identifying the font used in a control 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 QueriesUniversal Windows 10 AppiPhone/iPad In a report, the FontName property can only be used on:
  • a URL Link control.
  • a Static 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.
Remark: This property applies to the "ListView" controls in "List Box" display mode only.
WEBDEV - Server code In a page, the FontName property can be used on:
  • a Static control,
  • an edit control,
  • a Button control,
  • a Check Box control,
  • a Radio Button control,
  • a List Box control,
  • a column in 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 applies only to the following elements:
  • Button control.
  • Static control.
  • Combo Box control.
  • TreeView control.
  • Column of a Table control.
PHP PHP: Files of fonts
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