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
  • Font variable
  • Fonts used by the print functions
  • Limits
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
The FontCondensed property is used to manage character spacing. You can:
  • Determine if characters in a text are condensed.
  • Condense (or not) the characters.
WLanguage supports the following character spacing options:
  • Normal: character spacing is normal.
  • Condensed: character spacing is reduced (property CondensedFont).
  • Extended: character spacing is increased (property FontExtended).
  • Large: character spacing is increased to maximum (property FontLarge).
Example
// Condenser les caractères du texte affiché dans le champ "LIB_ChampLibellé"
LIB_ChampLibellé.PoliceCondensée = True
Syntax

Finding out whether the characters in the text displayed in a control are condensed Hide the details

<Result> = <Control used>.FontCondensed
<Result>: Boolean
  • True if the characters displayed in the text are condensed,
  • False otherwise.
<Control used>: Control name
Name of field (Static Text control or Calculated control) to be manipulated.

Condensing the characters in the text displayed in a control Hide the details

<Control used>.FontCondensed = <Condensed/Not condensed>
<Control used>: Control name
Name of field (Static Text control or Calculated control) to be manipulated.
<Condensed/Not condensed>: Boolean
  • True if the characters displayed in the text must be condensed,
  • False otherwise.
Remarks

Font variable

If identical fonts (same size, attributes, etc.) must be applied to multiple controls, it is recommended to use a font created programmatically.
A font can be created from a Font variable.
To define the font characteristics, use:
This font can be used:

Fonts used by the print functions

To create a font that can be used by the print functions (iPrintBlock, iPrintWord, etc.), use:

Limits

In a report, the FontCondensed property can only be used on:
  • a Static Text control.
  • a URL Link control.
  • a calculated control.
  • a preset control.
WINDEV In a window, the FontCondensed property cannot be used on:
  • a Spin control,
  • a Web Camera control,
  • a Conference control.
Note: This property only applies to ListView controls in standard "List Box" display mode.
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 10/02/2024

Send a report | Local help