ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / Automatic Application Features (AAF) / AAF on Edit controls
  • Overview
  • Configuring the menu
  • Configuring the automatic input history menu in an Edit control
  • Configuring the input history
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Overview
In Edit controls, a "Remember" menu allows users to set the options for saving the values entered in the control.
It can thus:
  • Store last value entered: If the user selects this option, each time the window is opened, the last value entered by the user will be automatically entered in the Edit control..
  • Store value XXX: If the user selects this option, each time the window is opened, the value XXX will be automatically entered in the field.
  • Memorize current date (Date type fields only): If the user selects this option, each time the window is opened, the current date will be automatically entered in the Edit control..
  • Store input history: If the user selects this option, when the first characters are typed, the various values previously entered in the field are automatically listed..
    Note: This option only works if the Edit control is linked to a field in a data file..
    If the storage of the input history is enabled, an additional option is used to clear the input history.
Note: The "Memorize" option is available in the context menu for several types of field. This option is used to implement data persistence. The stored data is saved on the user's computer. For more details, see Data persistence.
Configuring the menu

Configuring the automatic input history menu in an Edit control

The context menu of the Edit control can be disabled. To configure the context menu of the Edit control:
  1. Open the Edit control description window.
  2. Select the "UI" tab.
  3. Choose the desired menu in the "Context menu" combo box. It is possible to:
    • "Display the AAF menu (System)": In this case, the context menu displayed will be the Edit control automation menu.. For more details on how to configure this menu, see Configuring the AAF menu.
    • "Add a context menu": If this option is checked, you can select the custom context menu to be displayed..
Remarks:
  • If both options are checked, the custom context menu can be added before or after the AAF menu.
  • If no option is selected, no context menu will be selected. The <Disabled> option will be displayed in the description window.
  • The ContextMenu property is also used to remove the AAF-specific context menu and restore the standard Windows menu for a given control.
  • AAFDisable is used to remove some options from the AAF context menu specific to Edit controls.
    • to disable the "Remember" option, simply use AAFDisable with the aafSaveValue constant.
    • to disable the input history options, simply use AAFDisable with the aafHistoryInput constant.

Configuring the input history

In the "Details" tab of the Edit control description, you can specify that:
  • the value in the control must be saved.
  • the input history must be enabled.
In this case, the options of the context menu will be automatically checked for the current control.
Minimum version required
  • Version 10
Comments
Click [Add] to post a comment

Last update: 09/30/2024

Send a report | Local help