ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage properties / Properties associated with windows, pages and controls
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 CompactOption property is used to:
  • find out whether the options of a control (Radio Button, Check Box, Dashboard) are in compacted mode.
  • switch the options of a control (Radio Button, Check Box, Dashboard) to compacted mode.
In compacted mode, the options of a control move closer:
  • when an option is made invisible.
  • when an option is deleted.
If the options are not compacted, they keep their initial position.
Example
WINDEV
CBOX_Options.CompactOption = True
// Deletes option #3 from a Check Box control
CheckBoxDelete(CBOX_Options, 3)
Syntax

Finding out whether the options of a control are compacted Hide the details

<Result> = <Control used>.CompactOption
<Result>: Boolean
  • True if the options are compacted,
  • False otherwise.
<Control used>: Control name
Name of the control used. This control can be:
  • WINDEV a Check Box control,
  • WINDEV a Radio Button control,
  • a Dashboard control.

Defining whether the options found in a control must be compacted Hide the details

<Control used>.CompactOption = <Compact>
<Control used>: Control name
Name of the control used. This control can be:
  • WINDEV a Check Box control,
  • WINDEV a Radio Button control,
  • a Dashboard control.
<Compact>: Boolean
  • True if the options of the control must be compacted,
  • False otherwise.
Remarks
This property is available for:
  • WINDEV Check Box controls.
  • WINDEV the Radio Button controls.
  • the Dashboard controls.
Remarks:
  • WINDEV Check Box and Radio Button controls: This property corresponds to the "Compact invisible options" option in the "Details" tab of the control description.
  • Dashboard control: This property corresponds to the "Compact Widgets" option in the "Details" tab of the control description.
  • WEBDEV - Server codeAndroidiPhone/iPadMac Catalyst This property is available for Dashboard controls only.
Minimum version required
  • Version 18
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/29/2022

Send a report | Local help