PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Overview
  • Sort option
  • Necessary conditions
  • Operating mode
  • Implementation
  • Storing the value
  • 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 automatically 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. See Configuring the AAF menus for more details.
By programming:
  • DisableAAF 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.AAFDisable (or DisableAAF) 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.
  • ..Sorted is used to find out whether the List Box or Combo Box control is sorted.
Storing the value

Operating mode

To store the value selected in a List Box or Combo Box control, select "Store the value" from the popup menu of the control.

Implementation

The "Store the value" option is automatically available in the Combo Box and List Box controls. This option is used to manage the persistence of data.
Like all the popup menus proposed by the AAFs, you have the ability to configure the default options proposed by the control. See Configuring the AAF menus for more details.
By programming: DisableAAF associated with the aafSaveValue constant is used to delete the "Store the value" option from the popup menu of the specified List Box or Combo Box control.By programming: AAFDisable (or DisableAAF) associated with the aafSaveValue constant is used to delete the "Store the value" option from the popup menu of the specified List Box or Combo Box control.
Note: You also have the ability to store the value via "Store the value" found in the description window of control ("Details" tab). This option is used to store 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.
Copying the row or all the rows
Versions 20 and later

Operating mode

To copy the content of the selected row in a List Box control, select "Copy the row" from the popup menu. The row content is copied into the clipboard.
To copy the content of all the rows found in a List Box control, select "Copy all" from the popup menu. The content of all rows is copied into the clipboard.
New in version 20

Operating mode

To copy the content of the selected row in a List Box control, select "Copy the row" from the popup menu. The row content is copied into the clipboard.
To copy the content of all the rows found in a List Box control, select "Copy all" from the popup menu. The content of all rows is copied into the clipboard.

Operating mode

To copy the content of the selected row in a List Box control, select "Copy the row" from the popup menu. The row content is copied into the clipboard.
To copy the content of all the rows found in a List Box control, select "Copy all" from the popup menu. The content of all rows is copied into the clipboard.
Versions 20 and later

Implementation

The "Copy the 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. See Configuring the AAF menus for more details.
By programming:
  • DisableAAF associated with:AAFDisable (or DisableAAF) used 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 caption of the menu options ("Copy the row" and "Copy all").
    New in version 21
    AAFChangeCaption is used to modify the caption of the menu options ("Copy the row" and "Copy all").
    AAFChangeCaption is used to modify the caption of the menu options ("Copy the row" and "Copy all").
New in version 20

Implementation

The "Copy the 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. See Configuring the AAF menus for more details.
By programming:
  • DisableAAF associated with:AAFDisable (or DisableAAF) used 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 caption of the menu options ("Copy the row" and "Copy all").
    New in version 21
    AAFChangeCaption is used to modify the caption of the menu options ("Copy the row" and "Copy all").
    AAFChangeCaption is used to modify the caption of the menu options ("Copy the row" and "Copy all").

Implementation

The "Copy the 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. See Configuring the AAF menus for more details.
By programming:
  • DisableAAF associated with:AAFDisable (or DisableAAF) used 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 caption of the menu options ("Copy the row" and "Copy all").
    New in version 21
    AAFChangeCaption is used to modify the caption of the menu options ("Copy the row" and "Copy all").
    AAFChangeCaption is used to modify the caption of the menu options ("Copy the row" and "Copy all").
Minimum required version
  • Version 15
Comments
Click [Add] to post a comment