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 Android and iOS
  • 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 15 and later
Android The Radio Button controls are now available for Android applications.
New in version 15
Android The Radio Button controls are now available for Android applications.
Android The Radio Button controls are now available for Android applications.
Versions 16 and later
Universal Windows 10 App The Radio Button controls are now available for Windows Phone applications.
New in version 16
Universal Windows 10 App The Radio Button controls are now available for Windows Phone applications.
Universal Windows 10 App The Radio Button controls are now available for Windows Phone applications.
Versions 17 and later
iPhone/iPad The Radio Button controls are now available for iPhone/iPad applications.
New in version 17
iPhone/iPad The Radio Button controls are now available for iPhone/iPad applications.
iPhone/iPad The Radio Button controls are now available for iPhone/iPad applications.
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 the position where the control will be created in the window or page. The control appears in the editor.
WINDEV Mobile 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.
Windows Mobile Remark: You can manage a general tooltip for the control or a tooltip specific to each option.
AndroidiPhone/iPad

Limitations in Android and iOS

Only images are supported for option checkmarks. If no image is specified, the system image is used. The elements "Checkmark" and "Checkmark border", in the style of Radio Button controls, are ignored.
Display modes available
iPhone/iPadUniversal Windows 10 AppWindows Mobile
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.
iPhone/iPadUniversal 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