PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN

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 FontMinSize property is used to get and change the minimum size of the font used in a Static control with the "Reduce font size" option ("Details" tab of the Static control description window).
Reminder: This option allows you to reduce the font size to allow long text to be displayed in full in the Static control. The minimum font can also be specified in the "Details" tab of the Static control description.
New in version 27
Android This property is now available for Android applications.
Android Widget This property is now available in Android widget mode.
Example
// Set minimum font size
STC_MyTitle.FontMinSize = 8
Syntax

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

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

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

<Static control>.FontMinSize = <Font size>
<Static control>: Control name
Name of the Static control to be used.
<Font size>: Integer
  • 0 to disable the feature. In this case, the font is not reduced.
  • Minimum font size.
    New in version 27
    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 controls.
  • If the text is too long, an ellipsis is displayed.
  • The maximum font size is given by the FontSize property.
  • New in version 27
    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