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:
  • determine whether the options of a Radio Button, Check Box or Dashboard control are compacted.
  • define whether the options of a Radio Button, Check Box or Dashboard control should be compacted.
In compact mode, the space between the options is reduced:
  • when an option is hidden.
  • when an option is removed.
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

Determining 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 of a control should 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 Radio Button controls.
  • 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: 09/21/2023

Send a report | Local help