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
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
The FontMinSize property gets and sets the minimum size of the font used in a Static Text control with the "Reduce font size" option ("Details" tab of the Static Text control description window).
Reminder: This option reduces the font size to allow long text to be displayed in full in the Static Text control. The minimum font can also be specified in the "Details" tab of the Static Text control description.
Example
// Fixe la taille minimale de la police
LIB_MonTitre.PoliceTailleMin = 8
Syntax

Finding out the minimum size of the font used in a Static Text control Hide the details

<Result> = <Static Text control>.FontMinSize
<Result>: Integer
  • 0 if this feature is not enabled (default value). In this case, the font is not reduced.
  • Minimum font size. This size is expressed in the unit specified for the element (returned by the SizeUnit property).
<Static Text control>: Control name
Name of the Static Text control to be used.

Changing the minimum size of the font used in a Static Text control Hide the details

<Static Text control>.FontMinSize = <Font size>
<Static Text control>: Control name
Name of the Static Text control to be used.
<Font size>: Integer
  • 0 to disable the feature. In this case, the font is not reduced.
  • Minimum font size. This size is expressed in the unit specified for the element (returned by the SizeUnit property).
Remarks
  • This property has no effect on RTF Static Text controls.
  • If the text is too long, an ellipsis is displayed.
  • The maximum font size is given by the FontSize property.
  • The size is expressed in the unit specified for the element (returned by the SizeUnit property).
Minimum version required
  • Version 25
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/10/2025

Send a report | Local help