ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Controls, pages and windows / AAF functions (Automatic Application Features)
  • Running an automatic feature
  • Deleting AAFs
  • Equivalence
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Disables an Automatic Application Feature (AAF) on a control, window or on the current application.
The export to Excel can be disabled for a Table control for example. The corresponding context menu option is automatically deleted.
Note: This function is identical to DisableAAF, retained for compatibility.
Example
Syntax
AAFDisable([<Control or window>, ] <Feature to disable>)
<Control or window>: Optional control name or window name
Name of the control or window affected by the automatic feature. It is also possible to use a window alias name.
If this parameter is not specified, the automatic feature will be disabled for the entire application.
<Feature to disable>: Integer constant
Automatic feature to disable. This action depends on the type of control used. The function has no effect if the type of control is not valid for the selected constant.
aaf1stFocusControlDisables the context menu used to set the initial focus to the edit control.

Concerned element: Edit control field
aafAAFHelpDisables the context menu used to open the AAF help site (https://aaf.windev.com/).


Affected element: Window, Table field, Hierarchical Table field, Pivot Table control field
aafAddRowNumberColumnDisables the context menu for adding the first "Row no." column to the Table control .

Applies to:
  • Table control.
  • TreeView Table control.
aafAddShortcutDisables the context menu used to manage custom keyboard shortcuts.


Affected element: Button field
aafAdjustAllColumnsDisables the context menu that allows users to automatically adjust all columns.


Affected element: Table control
aafAutoFilterOnKeystrokeDisables automatic filtering of a Table control column when the user presses a key in an editable Table control.
Affected element: Table control.

aafAutomaticCalculationTableDisables the context menu for displaying automatic calculations on Table control columns.


Item concerned: Table field or TreeView Table control field
aafAutomaticTotalsDisables:
  • automatic calculations on the Numerical columns of a Table control.
  • the "Number of elements" option in the Table control context menu.


Affected element: Table control
aafAutomaticValidationDisables the option to set a timer on a button.


Affected element: Button control.
aafCalculatorDisables the context menu used to display a popup calculator to perform calculations.


Affected element: Numerical or Monetary input field
aafCalendarDisables the context menu used to display a popup calendar in order to select a date in a Date edit control.


Affected element: Edit control type Date
aafChangeBackgroundColorDisables the context menu used to change the background color of a row, column or cell in a control.


Affected element: Table field, Hierarchical Table and Crosstab
aafChartDisables the display of an automatic chart in a Table control.


Affected element: Table control
aafChartMenuDisables the context menu of Chart controls displayed via the AAF mechanism.


Item concerned: Chart control field
aafCheckAllDisables the context menu used to check/uncheck all rows in a Check Box column of a Table control.


Affected element: Table field or TreeView Table control field
aafCheckBoxCheckAllDisables the context menu options used to check or uncheck all the options in a Check Box control.


Item concerned: Check Box control field
aafColumnSelectionDisables the column selection on a Table control to display.


Affected element: Table control
aafCompareDateRangePvtDisables the context menu used to compare different periods in the Pivot Table control.


Item concerned: Pivot table field
aafCopyDisables the context menu used to:
  • copy the row of a List Box control.
  • copy the row and the column of a Table control. Affected element: List Box control or Table control.


aafCopyAllDisables the context menu used to copy all rows found in a List Box or Table control to the clipboard ("Copy all" option).

Affected element: List Box control or Table control
aafCopyFormDisables the context menu used to copy the current form.


Component concerned: Window
aafCustomizeUIDisables the context menu option allowing the end user to customize the interface.


Component concerned: Window
aafDashEditModeDisables the option to switch to edit mode:

    Item concerned: Dashboard control field

    Item concerned: Pivot table field
    aafDashEditModeDisables the option to switch to edit mode:

      Item concerned: Dashboard control field
      aafDeactivateWindowAnimationDisables the context menu option used to disable window animations.


      Component concerned: Window
      aafDiscoverAAFDisables the toast used to inform the user about AAFs (Automatic Application Features).


      Component concerned: Window
      aafDisplayOnSeveralLinesDisables the context menu used to display the content of a column of a Table control on several rows. This context menu is disabled for all columns in the Table control.


      Affected element: Table control
      aafDisplayPasswordDeletes the password reveal icon.

      Concerned element: Edit control field
      aafDisplayThumbnailDisables the display of a thumbnail of an image or PDF file whose path has been entered in an edit control.


      Affected element: Edit control file path input field
      aafEditTooltipDisables the context menu option used to edit the tooltip of the control.

      Element concerned: all field types.
      aafExpandCollapseAllDisables the option used to expand or collapse all elements in a TreeView Table control or in a branch of a TreeView Table control.


      Applies to:
      • TreeView Table control,
      • TreeView control.
      aafFileSelectionDisables the "Browse" option in the context menu displayed in File and File Path edit controls.


      Concerned element: Edit control field
      aafFilterDisables the context menu for automatic filters on magnifiers, in the column titles of a Table control.
      Affected element: Table control.

      aafFindDisables the use of the search on a multiline edit control.


      Item concerned: Multiline Edit control field
      aafFindInComboDisables the search on a Combo Box control.
      Warning: If the search in the Combo Box control has been activated by the "With search" option available in the "Detail" tab of the field description window, this constant is not taken into account..

      Affected element: Combo Box control
      aafFreezeColumnLeftDisables the context menu that allows users to lock columns in a Table control.

      Affected element: Table field or TreeView Table control field
      aafGanttAddDependencyDisables the context menu used to add and delete a dependency link between two tasks in a Gantt Chart column.


      Affected element: Gantt Chart column in a Table field or a hierarchical Table field.
      aafGanttAddTaskDisables the context menu used to add a task into a Gantt Chart column.


      Affected element: Gantt Chart column in a Table field or a hierarchical Table field.
      aafGanttDeleteTaskDisables the context menu used to delete a task from a Gantt Chart column.


      Affected element: Gantt Chart column in a Table field or a hierarchical Table field.
      aafGanttEditTaskDisables the context menu used to edit a task in a Gantt Chart column.


      Affected element: Gantt Chart column in a Table field or a hierarchical Table field.
      aafGotoLineDisables the context menu used to display a window for entering the number of the line to reach in a multiline edit control.


      Item concerned: Multiline Edit control field
      aafHistoryHFLogDisables the history of HFSQL records of a control linked to a data file.


      Item concerned: Field linked to a data file
      aafHistoryInputDisables input history.


      Elements involved: Edit control, combo with input
      aafInternetSearchDisables the context menu option used to search the Internet.


      Affected elements:
      • Edit control
      • Table control, TreeView Table control, Spreadsheet control and Pivot Table control
      aafMagnifierOnTableNoInputNoSelectionMaintains version 20 behavior on tables without input or selection: the magnifying glass does not appear in the column, even if the "Magnifying glass" option is checked in the column description window..


      Affected element: Table control
      aafModifyInputValueWithWheelDisables the modification of the value in numeric edit controls with the mouse wheel.


      Item concerned: Numerical input field
      aafModifyProgressGanttTaskDisables the modification of the progress value of a task in a Gantt Chart column.


      Affected element: Gantt Chart column in a Table field or a hierarchical Table field.
      aafOpenDisables the context menu option used to open a file.


      Affected element: Edit control file path input field
      aafOpenLocationDisables the context menu option used to open the directory containing the file.


      Affected element: Edit control file path input field
      aafOpenWithDisables the context menu option used to open a file by selecting the software.


      Affected element: Edit control file path input field
      aafPDFDeleteCurrentPageDisables the context menu option that allows users to delete the current page in a PDF Reader control.


      Affected element: PDF Reader control field.
      aafPrintFileDisables the context menu option used to print a file.


      Affected element: Edit control file path input field
      aafPrintOrganizerDisables the context menu option used to print the content of Organizer control.


      Affected element: Organizer control field
      aafPrintPvtDisables the context menu option to print the content of the Pivot Table control.


      Item concerned: Pivot table field
      aafPrintReportOnTableDisables the "Print" option in the context menu of Table and TreeView Table controls.
      This constant also disables the "Print" option in the context menu of Gantt Chart columns.

      Affected element: Table field and hierarchical Table
      aafPrintScheduleDisables the context menu option used to print the content of a Scheduler control.


      Affected element: Scheduler control field
      aafPrintSpreadsheetDisables the context menu option used to print the content of the Spreadsheet control.


      Item concerned: Spreadsheet control field
      aafPvtCollapseAllDisables the option to collapse the entire content of the Pivot Table control.

      Item concerned: Pivot table field
      aafPvtExpandAllDisables the option to expand the entire content of the Pivot Table control.

      Item concerned: Pivot table field
      aafPvtRememberGroupDisables the option to save the configuration of groups.

      Item concerned: Pivot table field
      aafPvtRestoreGroupDisables the option to restore the initial configuration of groups.
      aafQuestionMarkMenuDisables the context menu option corresponding to the "?" menu.


      Component concerned: Window
      aafRateDDWDisables the option to modify the DDW (Dimmed Disabled Window) dim rate). The corresponding menu options and the shortcuts (Ctrl + Alt + [+] or Ctrl + Alt [-]) cannot be used anymore.

      aafRemoveFilterDisables the "Remove filter" option in the context menu of columns in Table and TreeView Table controls with an active filter.


      Affected element: Table field and hierarchical table
      aafRepositionableNoteDisables the option to create repositionable notes.


      Component concerned: Window
      aafResizeRowHeightDisables the option for the user to resize the rows vertically. This option must have been enabled in the description of the Table control.
      Affected element: Table field, Hierarchical Table field, RepeatString field
      aafRTFToolbarDisables the context menu used to display the RTF toolbar of RTF Edit controls.


      Affected element: RTF edit control
      aafSaveAs
      • Disables the context menu option used to save the content of Spreadsheet control in an xlsx file.
      • Disables the context menu option used to save the Dashboard control as an image.

      Applies to:
      • Spreadsheet control
      • Dashboard control
      aafSaveBreakStatusDisables the context menu option used to store the status of breaks.


      Affected element: Table control field, RepeatString field
      aafSaveFilterAndSortDisables the menu options used to store filters and sorts in a Table control.
      Affected element: Table control
      aafSaveSizeAndPositionDisables size and position saving for windows and window controls (Splitter, Table, Toolbar control).


      Component concerned: Window
      aafSaveValueDisables the feature that saves the values of persistent controls in the window. This AAF can be disabled for a control or a window (in this case, the option is deleted from the context menus of all window controls).
      Elements involved: Window, Edit control, List control, Combo Box control with input, Radio Button control or Check Box control.
      aafSchAutoScrollDisables the automatic scroll of scheduler when moving an appointment.


      Affected element: Scheduler control field
      aafSendFileByEmailDisables the context menu option used to send a file by email. This file can be:
      • the file whose path is in an Edit control.
      • the Organizer.pdf file that represents the printed version of the Organizer control.
      • the Scheduler.pdf file that represents the printed version of the Scheduler control.

      Applies to:
      • File path Edit control.
      • Organizer control.
      • Scheduler control.
      aafSortListOrComboDisables the context menu option used to sort the content of a List Box or Combo Box control.


      Affected element: List Box control or Combo Box control.
      aafSortTVTableKeepHierarchyChanges the sort method in the TreeView Table controls. By default, sorting on columns preserves the hierarchy: only leaves are sorted..
      This constant is used to changer this behavior and to sort the nodes and leaves level by level.


      Affected element: TreeView Table control field.
      aafSpeechRecognitionDisables speech recognition.

      aafSpellCheckDisables the use of Word spelling checker for an edit control.
      Note: This feature requires Word 2000 at least on the user's workstation.. This feature does not work with Word 97.


      Concerned element: Edit control field
      aafTableToExcelDisables the export of Table control content or content selection to Excel or to OpenOffice Calc (depending on the software installed on the user's computer).


      Affected element: Table field, TreeView field, Hierarchical Table field, RepeatString field
      aafTableToWordDisables the export of Table control content or content selection to Word or to OpenOffice Writer (depending on the software installed on the user's computer).


      Affected element: Table field, TreeView field, Hierarchical Table field, RepeatString field
      aafTableToXMLDisables the export of Table control content or content selection to XML.


      Affected element: Table field, TreeView field, Hierarchical Table field, RepeatString field
      aafUncheckAllDisables the context menu used to check/uncheck all rows in a Check Box column of a Table control.


      Affected element: Table field or TreeView Table control field
      aafZoom
      • Disables the option to zoom in a Table, TreeView Table, Pivot Table, Spreadsheet or List Box control.
        Element concerned: Table, Hierarchical Table, Dynamic Crosstab, Spreadsheet or List field.
      • Disables the option to zoom in a window.
        Component concerned: Window.
      faaComboFilterContainsDeactivates the "Begins with" search mode in an unrolled memory combo: the search is then of the "Contains" type.

      Related item: Memory combo
      faaDndScrollAutoDisables automatic scrolling in table fields when Drag and Drop is used.
      Note: By default, moving a table element to the column headings causes the table contents to dequeue up or down.


      Affected element: Table control
      faaJetonPasseEnSaisieDisables input of the selected token.

      Item concerned: Edit control field with tokens
      New in version 2025
      faaPasteAllLine
      Disables the context menu for pasting a line from another Table control into a Table control.


      Affected element: Table control
      Remarks

      Running an automatic feature

      To run an automatic feature, use AAFExecute.

      Deleting AAFs

      To delete the options that correspond to AAFs in the context menu of a control, use ContextMenu.

      Equivalence

      This function is equivalent to DisableAAF.
      Business / UI classification: UI Code
      Component: wd300obj.dll
      Minimum version required
      • Version 21
      This page is also available for…
      Comments
      Click [Add] to post a comment

      Last update: 02/05/2025

      Send a report | Local help