PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Overview
  • Creating a Radio Button control
  • Creating a Radio Button control
  • Limitations in Java
  • Display modes available
  • Swap
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Overview
The Radio Button control is a control allowing the user to select an option among several ones.
A radio button can display up to 256 options arranged in several rows and columns. A single option can be selected by the user. The radio button returns the number of the selected option.
Examples:
  • In WINDEV or WINDEV Mobile:
  • In WEBDEV:
Versions 16 and later
WINDEVLinux The Radio Button controls are now available for the WINDEV applications in Linux.
New in version 16
WINDEVLinux The Radio Button controls are now available for the WINDEV applications in Linux.
WINDEVLinux The Radio Button controls are now available for the WINDEV applications in Linux.
Versions 18 and later
Universal Windows 10 App The Radio Button controls are now available for applications in Windows Store apps mode.
New in version 18
Universal Windows 10 App The Radio Button controls are now available for applications in Windows Store apps mode.
Universal Windows 10 App The Radio Button controls are now available for applications in Windows Store apps mode.
Versions 21 and later
Universal Windows 10 App The Radio Button controls are now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App The Radio Button controls are now available in Universal Windows 10 App mode.
Universal Windows 10 App The Radio Button controls are now available in Universal Windows 10 App mode.
Creating a Radio Button control

Creating a Radio Button control

To create a Radio Button control:
  1. On the "Creation" pane, in the "Usual controls" group, click "Radio button".
  2. Click where the control will be created in the window or page. The control appears in the editor.
WINDEV Tip: You also have the ability to create a "preset" radio button by expanding "Radio button". The list of available controls is displayed with the project skin template. Simply click the requested control to create it in the editor.
To display the control characteristics, select "Description" in the control popup menu.
WINDEV Remark: You can manage a general tooltip for the control or a tooltip specific to each option.
Java

Limitations in Java

The following characteristics are not supported in Java:
  • proportional columns (if the options of the radio button are displayed over several columns).
  • multiline captions for the options of radio buttons.
  • formatted text for the options of radio buttons (R. T. F.).
  • help number associated with each option of the radio button.
Display modes available
WINDEVUniversal Windows 10 App
WINDEV and WINDEV Mobile propose different display modes for the radio buttons:
  • standard radio button,
  • standard radio button with sub-captions,
  • radio button in Vista style (an image can be used for each option),
  • radio button in Vista style with sub-captions (an image can be used for each option).
The display mode of the radio button can be selected in the "General" tab of the control description. The "Content" tab is used to enter the characteristics specific to the display mode (image, sub-caption, row height, etc.) in the different languages of the application. These elements can be modified by programming.
The programming mode can change according to the type of display. See Handling a radio button by programming for more details.
LinuxUniversal Windows 10 App Only the standard mode and the standard mode with sub-captions are proposed.
Swap
WINDEV, WINDEV Mobile and WEBDEV allow you to automatically transform a Radio Button control into a Check Box control (and conversely):
  1. Select the control to transform.
  2. On the "Modification" pane, in the "Transformations" group, expand "Refactoring and swapping" and select "Radio Button/Check Box".
Related Examples:
The Radio Button control Unit examples (WINDEV): The Radio Button control
[ + ] Using a Radio Button control
HTMLClass property Unit examples (WEBDEV): HTMLClass property
[ + ] The property ..HTMLClass allows you to read and update the control's HTML attribute "class".
This property lets you select the CSS Style applied on the control.
Minimum version required
  • Version 9
This page is also available for…
Comments
IMPORTANTE
PARA ZERAR A LISTA DE OPÇÕES, DEIXANDO TODAS OPTIONS DESMARCADAS, BASTA ATRIBUIR O VALOR -1

TO RESET OPTIONS LIST BY LEAVING ALL OPTIONS UNCLEAR, JUST ASSIGN VALUE -1

POUR RÉINITIALISER LA LISTE DES OPTIONS EN LAISSANT TOUTES LES OPTIONS, JUSTE ASSIGNER LA VALEUR -1

PARA RESTABLECER LA LISTA DE OPCIONES DEJANDO TODAS LAS OPCIONES NO CLARAS, SOLO ASIGNE EL VALOR -1
BOLLER
14 Oct. 2019