PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
  • Overview
  • Sort option
  • Necessary conditions
  • Operating mode
  • Implementation
  • Storing the value
  • Operating mode
  • Implementation
  • Search 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/iPadApple WatchUniversal Windows 10 AppWindows Mobile
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.
By programming:
  • AAFDisable associated with the aafSortListOrCombo constant is used to disable the sort option from the popup menu of the specified List Box or Combo Box control.
  • Versions 21 and later
    AAFChangeCaption is used to modify the caption of the sort option.
    New in version 21
    AAFChangeCaption is used to modify the caption of the sort option.
    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.
Storing the value

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.
By 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.
Versions 23 and later
Search 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.
By programming: the AAFDisable function used 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.
New in version 23
Search 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.
By programming: the AAFDisable function used 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.
Search 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.
By programming: the AAFDisable function used 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
Versions 20 and later

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.
New in version 20

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.

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.
Versions 20 and later

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.
By 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.
  • Versions 21 and later
    AAFChangeCaption is used to modify the text of the menu options ("Copy row" and "Copy all").
    New in version 21
    AAFChangeCaption is used to modify the text of the menu options ("Copy row" and "Copy all").
    AAFChangeCaption is used to modify the text of the menu options ("Copy row" and "Copy all").
New in version 20

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.
By 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.
  • Versions 21 and later
    AAFChangeCaption is used to modify the text of the menu options ("Copy row" and "Copy all").
    New in version 21
    AAFChangeCaption is used to modify the text of the menu options ("Copy row" and "Copy all").
    AAFChangeCaption is used to modify the text of the menu options ("Copy row" and "Copy all").

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.
By 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.
  • Versions 21 and later
    AAFChangeCaption is used to modify the text of the menu options ("Copy row" and "Copy all").
    New in version 21
    AAFChangeCaption is used to modify the text of the menu options ("Copy row" and "Copy all").
    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