ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / Automatic Application Features (AAF)
  • Overview
  • Sort option
  • Necessary conditions
  • Operating mode
  • Implementation
  • Saving values
  • Operating mode
  • Implementation
  • Searching in the expanded list
  • Operating mode
  • Implementation
  • Copying the row or all the rows
  • Operating mode
  • Implementation
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
Overview
The List Box and Combo Box controls can benefit from several AAFs (Automatic Application Features):
Sort option

Necessary conditions

This feature is very useful if the list box is quite long and if the developer forgot to sort the content.
In order for this feature to be available, the following conditions must be fulfilled:
  • The List Box or Combo Box control must be filled by programming or by a file loaded in memory.
  • The List Box or Combo Box control must not be already sorted.

Operating mode

To use the automatic feature for sorting a List Box or Combo Box control, select "Sort" from the popup menu of the control.

Implementation

The sort option in the Combo Box and List Box controls is automatically implemented from version 15.
Like all the popup menus proposed by the AAFs, you have the ability to configure the default options proposed by the control. For more details, see Configuring the AAF menus.
Through programming:
  • AAFDisable with the aafSortListOrCombo constant removes the sorting option from the context menu of the specified List Box or Combo Box control.
  • AAFChangeCaption is used to modify the caption of the sort option.
  • the Sorted property determines if the List Box or Combo Box control is sorted.
Saving values

Operating mode

To save the value selected in a List Box or Combo Box control, select "Remember value" in the context menu of the control.

Implementation

The "Remember value" option is automatically available in Combo Box and List Box controls. This option is used to manage the data persistence.
Like all the popup menus proposed by the AAFs, you have the ability to configure the default options proposed by the control. For more details, see Configuring the AAF menus.
Through programming: AAFDisable (or DisableAAF) with the aafSaveValue constant deletes the "Remember value" option from the context menu of the specified List Box or Combo Box control.
Remark: You can also save the value via the "Remember value" option in the control description window ("Details" tab). This option is used to save the value even if the menu option was not enabled by the user. The menu option has priority if it was enabled by the user.
Searching in the expanded list

Operating mode

To search in the expanded list of the Combo Box control, simply:
  • expand the list of the Combo Box control,
  • start entering the text to search for. An input area appears, allowing you to enter the desired element.

Implementation

The search in expanded lists is automatically available in Combo Box controls.
Through programming: AAFDisable with the aafFindInCombo constant disables the search for the specified Combo Box control.
Remark: It is also possible to offer a search box by default in the list of a Combo Box control via "With search", in the control description window ("Details" tab). This option can also be enabled by the SearchAAF property.
Copying the row or all the rows

Operating mode

To copy the contents of the selected row in a List Box control, select "Copy row" in the context menu. The row content is copied to the clipboard.
To copy the contents of all the rows in a List Box control, select "Copy all" in the context menu. The contents of all rows is copied to the clipboard.

Implementation

The "Copy row" and "Copy all" options are automatically available in the List Box controls.
Like all the popup menus proposed by the AAFs, you have the ability to configure the default options proposed by the control. For more details, see Configuring the AAF menus.
Through programming:
  • AAFDisable associated with:
    • the aafCopy constant is used to disable the copy of a row.
    • the aafCopyAll constant is used to disable the copy of all rows.
  • AAFChangeCaption is used to modify the text of the menu options ("Copy row" and "Copy all").
Minimum version required
  • Version 15
Comments
Click [Add] to post a comment

Last update: 06/07/2022

Send a report | Local help