|
|
|
|
|
- Overview
- Configuring the context menus of AAFs
- Configuration at project level
- Configuration at control level
- Disabling the AAF context menu
- How to translate AAF context menus?
- Translating default context menus
Configuring the AAF menus (Automatic Application Features)
WINDEV includes several Automatic Application Features (AAFs). These AAFs allow end users to print and export the content of a Table control to Excel, show a calendar when entering a date, etc. In most cases, specific context menus are linked to AAFs. These context menus are displayed on windows, Edit controls, Image controls, etc. You can easily define the different options of the context menu in the editor. A custom context menu can also be added to the AAF context menu. This context menu can be placed before or after the AAF context menu. Remark: An AIF menu is displayed for the following fields: - In WINDEV: Agenda, Button, Edit control, Comizer, Gantt Chart, Window, Graph, Image, Switch, List, Flowchart, Planning, Picker, Table, Crosstab, TimeLine and RepeatString.
- In WINDEV Mobile: Combo, Switch, List, Picker, Table and RepeatString.
Configuring the context menus of AAFs Configuration at project level By default, all the options in the AAF context menus are available for all the types of controls in a project. To hide some AAF context menu options for some types of controls: - Open the project description: On the "Project" tab, in the "Project" group, click "Description".
- Display:
- the "Advanced" tab in WINDEV.
- the "Style" tab in WINDEV Mobile.
- Click "AAF menu". The window that appears allows you to configure the options that will be proposed by default in the AAF context menu for each type of control.
- For each type of control, select the options to display.
- Validate the settings window and the project description.
Note: The AIF menu can be configured for the following fields: - In WINDEV: Organizer, Button, Input field, Combo, Window, Image, Switch, List, Planning, Picker, Table, Crosstab, TimeLine and RepeatString.
- In WINDEV Mobile: Combo, Switch, List, Picker, Table and RepeatString.
Configuration at control level A context menu can be chosen for each type of control. The "System" context menu is proposed by default. This "System" context menu contains the different AAF options. To configure the context menu of the controls: - Open the control description window.
- Open the "UI" tab.
- The "Context menu" combo box allows you to configure the context menu:
- the
button is used to create a new context menu. - the combo box is used to:
- display the AAF context menu and set the options that will be displayed for the current control.
- display a specific context menu. This context menu can be displayed before or after, or even replace the AAF context menu
- Validate.
Remark: The AIF menu can be configured for the following fields: Button, Edit control, Combo, Window, Image, Switch, List, Flowchart, Picker, Table, Crosstab, TimeLine, Repeat area and Graph.. For the Chart control, the context menu can be shown or hidden and a custom menu can be displayed before or after. To configure the options that will appear in the context menu of a chart, use grMenuOption. Disabling the AAF context menu To disable the AAF context menu: - in the window editor: in the field description ("UI" tab), uncheck the "Display the AAF menu (System)" option in the "Context menu" combo box.
- use the ContextMenu property.
How to translate AAF context menus? In a multilingual application, AAF context menus must be translated as well as all application captions and messages. WDINT is required to translate this type of menu. Reminder: WDINT is a separately available tool. This tool creates a specific file (.WDM extension) containing all the translations of the resources found in WINDEV/WEBDEV/WINDEV Mobile. This tool is supplied with WDMSG to extract the captions to translate and reintegrate the translated captions into your application. Contact PC SOFT Sales Department for more details about the conditions for using this program. By default, all English and French resources are distributed with WDINT. Translating default context menus To translate the default context menus: - Install WDINT if not already done.
- Start WINDEV. On the "Project" tab, in the "Translate" group, expand "Translate" and select "WDINT - WINDEV framework translation".
- In the WDINT wizard, specify the language of the files to extract as well as their name, and the path of the file to be generated. This file will contain the messages to translate in the selected extraction language.
- Translate resources with WDTRAD (included with WDINT).
- Reintegrate the translation file.
- Generate the WDM file that corresponds to the desired language.
- Copy the WDM file to your application directory.
- In WINDEV, display the project description window: under the "Project" pane, in the "Project" group, click on "Description"..
- On the "Languages" tab, specify the WDM file containing the desired translations ("Miscellaneous" tab).
- Validate the project description window.
- When the application is run in the target language, the context menus will appear in that language.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|