ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage properties / Properties associated with windows, pages and controls
  • Check Box and Radio Button control
  • TreeMap control
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 SubCaption property is used to get and change:
  • the secondary caption of an option found in a Radio Button or Check Box control.
    Remark: The Radio Button or Check Box control must support the sub-captions ("Standard + sub-captions" or "Vista + sub-captions" control).
  • WINDEV the secondary caption of an element found in a TreeMap control.
Example
// Modify the secondary caption of a Radio Button control
RADIO_Choice[2].SubCaption = "To enable the advanced mode"
Syntax

Finding out the sub-caption of an element Hide the details

<Sub-caption text> = <Control used>[<Element number>].SubCaption
<Sub-caption text>: Character string
Corresponds to:
  • the sub-caption of the option for a Radio Button or Check Box control.
  • the secondary caption of the element for a TreeMap control.
<Control used>: Control name
Name of the control used. This control can correspond to a Radio button control, a Check Box control or a TreeMap control.
<Element number>: Integer
Corresponds to:
  • the number of the option used for a Radio Button or Check Box control.
  • the index of the element used for a TreeMap control.

Modifying the sub-caption of an element Hide the details

<Control used>[<Element number>].SubCaption = <New sub-caption>
<Control used>: Control name
Name of the control used. This control can correspond to a Radio button control, a Check Box control or a TreeMap control.
<Element number>: Integer
Corresponds to:
  • the number of the option used for a Radio Button or Check Box control.
  • the index of the element used for a TreeMap control.
<New sub-caption>: Character string
Text of the sub-caption to display for the specified element.
Remarks

Check Box and Radio Button control

The height of the sub-caption is automatically adapted to the size of the text displayed. This height can be modified by the Height property.
WINDEV

TreeMap control

The secondary caption of an element will be displayed only if the necessary space is available.
Minimum version required
  • Version 14
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/05/2023

Send a report | Local help