ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / Developing an application or website / Controls, windows and pages / Controls: Available types / Switch control
  • Overview
  • Properties available in a window
  • Properties that can be used on the page controls
  • Properties that can be used on the options of a Switch control in a page (server code)
  • Properties that can be used on the options of a Switch control in a page (browser code)
  • Properties that can be used on the options of a Switch control in PHP
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
Properties associated with the options of a Switch control
Overview
Both options of a Switch control can be managed in WLanguage in a window or page with the following properties.
Properties available in a window
Properties available in a window

The following properties are associated with options of Switch controls:
BackgroundColorThe BackgroundColor property is used to set the background color of a control, window, page or block of a report.
CaptionIn a database, the Caption property is used to:
  • Find out the caption associated with a file item.
  • Find out the caption associated with a data file.
  • Find out and modify the connection caption.
In a report, the Caption property is used to:
  • Find out the text displayed in a Static or Link control.
  • Modify the text displayed in a Static or Link control.
In a window or page, the Caption property is also used to:
  • Find out and modify the caption of a control in a window or in a page.
  • Find out and modify the caption of a menu option.
  • Find out and modify the title of a window or page.
  • Find out the content of a Breadcrumb control.
ColorThe Color property is used to get or change the font color for:
  • a Font variable.
  • a text displayed in a Static control or in a calculated control of a report.
  • a text displayed in a window control.
  • a text displayed in a page control.
FullNameThe FullName property is used to find out the full name:
  • of a control.
  • of a window.
  • of a menu option.
  • of a table column.
GrayedThe Grayed property is used to:
  • Determine if a control (or a group of controls) is grayed out.
  • Gray out or ungray a control, a group of controls or a window.
HeightThe Height property is used to get and change the height:
  • of a control or block in a report.
  • of a control (in a window), window, row of a Table, List Box or ListView control, option of a Radio Button or Check Box control, break header or footer of a Table or Looper control.
  • of a control (in a page), break header or footer in a Table or Looper control. The control can be overlayable or not.
  • of a break cell in a Table or Looper control.
HelpNumberThe HelpNumber property is used to identify and modify the help number associated with a control.
ImageThe Image property gets and sets the background image of a control or block.
MarkdownThe Markdown property is used to enable or disable Markdown formatting in the controls of a window or a report.
NameThe Name property is used to get:
  • the name of the font associated with a Font variable.
  • the name of a control, report or report block.
  • the name of a control, group of controls or window.
  • the name of a control, group of controls or page.
ParallaxRateHeightThe ParallaxRateHeight property is used to determine and specify how fast a control is reduced when the scrollbar in the window, internal window or page moves.
ReturnedValueThe ReturnedValue property is used to:
  • Get and change the value returned by a window, page or report.
  • Get and change the value returned by an option in a Radio Button control.
StateThe State property is used to get and change the state of an element.
SubCaptionThe SubCaption property is used to get and change:
  • the secondary caption of an option found in a Radio Button or Check Box control.
  • the secondary caption of an element found in a TreeMap control.
ToolTipThe ToolTip property is used to get and change the text displayed in the tooltip associated with a window or page control.
TriStateThe TriState property is used to:
  • Determine if a check box option supports 3 or 2 states.
  • Determine if a TreeView control uses 3-state or 2-state check boxes.
  • Change the type of an option in a check box: option with 3 states or with 2 states.
VisibleThe Visible property is used to:
  • Find out whether an element is visible.
  • Make an element visible or invisible.
Remark: Depending on the platform used, some properties may not be available. For more details, see the property's help page.
Properties that can be used on the page controls
WEBDEV - Server code

Properties that can be used on the options of a Switch control in a page (server code)

The following properties are associated with options of Switch controls:
AliasThe Alias property is used to:
  • get or change the alias of a window (WINDEV and WINDEV Mobile).
  • get or change the alias of a dynamic tab (WINDEV).
  • get the internal HTML/JavaScript name of a control (WEBDEV).
CaptionIn a database, the Caption property is used to:
  • Find out the caption associated with a file item.
  • Find out the caption associated with a data file.
  • Find out and modify the connection caption.
In a report, the Caption property is used to:
  • Find out the text displayed in a Static or Link control.
  • Modify the text displayed in a Static or Link control.
In a window or page, the Caption property is also used to:
  • Find out and modify the caption of a control in a window or in a page.
  • Find out and modify the caption of a menu option.
  • Find out and modify the title of a window or page.
  • Find out the content of a Breadcrumb control.
CaptionHTMLThe CaptionHTML property is used to handle the text of a control as HTML code.
FullNameThe FullName property is used to find out the full name:
  • of a control.
  • of a window.
  • of a menu option.
  • of a table column.
NameThe Name property is used to get:
  • the name of the font associated with a Font variable.
  • the name of a control, report or report block.
  • the name of a control, group of controls or window.
  • the name of a control, group of controls or page.
ReturnedValueThe ReturnedValue property is used to:
  • Get and change the value returned by a window, page or report.
  • Get and change the value returned by an option in a Radio Button control.
WEBDEV - Browser code

Properties that can be used on the options of a Switch control in a page (browser code)

The following properties are associated with options of Switch controls:
AliasThe Alias property is used to:
  • get or change the alias of a window (WINDEV and WINDEV Mobile).
  • get or change the alias of a dynamic tab (WINDEV).
  • get the internal HTML/JavaScript name of a control (WEBDEV).
NameThe Name property is used to get:
  • the name of the font associated with a Font variable.
  • the name of a control, report or report block.
  • the name of a control, group of controls or window.
  • the name of a control, group of controls or page.
ReturnedValueThe ReturnedValue property is used to:
  • Get and change the value returned by a window, page or report.
  • Get and change the value returned by an option in a Radio Button control.
TypeThe Type property is used to get:
  • the type of element (data file or item) defined programmatically or in the data model editor, view or query.
  • the type of object.
  • the type of data held in a Variant.
PHP

Properties that can be used on the options of a Switch control in PHP

The following properties are associated with options of Switch controls:
AliasThe Alias property is used to:
  • get or change the alias of a window (WINDEV and WINDEV Mobile).
  • get or change the alias of a dynamic tab (WINDEV).
  • get the internal HTML/JavaScript name of a control (WEBDEV).
CaptionIn a database, the Caption property is used to:
  • Find out the caption associated with a file item.
  • Find out the caption associated with a data file.
  • Find out and modify the connection caption.
In a report, the Caption property is used to:
  • Find out the text displayed in a Static or Link control.
  • Modify the text displayed in a Static or Link control.
In a window or page, the Caption property is also used to:
  • Find out and modify the caption of a control in a window or in a page.
  • Find out and modify the caption of a menu option.
  • Find out and modify the title of a window or page.
  • Find out the content of a Breadcrumb control.
CaptionHTMLThe CaptionHTML property is used to handle the text of a control as HTML code.
ReturnedValueThe ReturnedValue property is used to:
  • Get and change the value returned by a window, page or report.
  • Get and change the value returned by an option in a Radio Button control.
Minimum version required
  • Version 24
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/05/2024

Send a report | Local help