|
|
|
|
|
- Overview
- Creating or opening a dictionary
- Adding elements into a dictionary
- Adding an element into a dictionary
- Example: Subscription of a procedure
- Creating groups of elements in a dictionary
- Copying elements from a dictionary
Warning
From version 24, this feature is kept for backward compatibility. It is recommended to use window, page, report and control templates to reuse elements combined with the Source Code Manager (SCM).
WINDEV, WEBDEV and WINDEV Mobile allow you to easily perform the following operations on a dictionary: Creating or opening a dictionary A dictionary physically corresponds to a ".DIC" file. This file is created from the "Dictionary" pane ("New" from the popup menu). A specific dictionary can also be opened from the "Dictionary" pane ("Open" in the context menu). The selected file is opened in the "Dictionary" pane. To display all the elements found in the dictionary: - Select the name of the dictionary
- Open the popup menu of the dictionary (right click) and select "Expand all".
Adding elements into a dictionary Adding an element into a dictionary To add an element into a dictionary: - "Drag and Drop" the selected element to the dictionary. Depending on the object to include, the Drag and Drop operation can be performed according to different methods:
- From the relevant editors (control, group of controls, window, line of code, ...):
- For the controls, the group of controls or the lines of code: select the element in the relevant editor and perform a Drag and Drop toward the dictionary.
- For the pages, the windows and the queries: select the title bar of the home window and perform a Drag and Drop toward the dictionary.
- From the "Project explorer" pane (window, file, item or procedure): Select the element in the "Project explorer" pane and perform a Drag and Drop toward the dictionary found in the "Dictionary" pane.
- From the "Code" pane: Select the name of the procedure in the "Code" pane and perform a Drag and Drop toward the dictionary.
- Specify whether the element found in the current application must subscribe to the element found in the dictionary. Indeed, when an element is added to the dictionary, this element is duplicated: the source application contains a copy of the element and another copy is copied into the dictionary.
If the subscription is accepted: When the element found in the application is modified, the subscription allows these modifications to be applied to the object found in the dictionary as well as to all the subscriber objects. For more details on the subscription, see Subscribing an element to the dictionary.
Remarks: - Several elements can be included in a dictionary: windows, controls, procedures, lines of code, files or items. These elements are included by Drag and Drop from the object to the selected dictionary.
- The reports cannot be included in a dictionary.
Example: Subscription of a procedure To store a procedure and to include it in your applications, all you have to do is store this procedure in your personal dictionary! - Open the project.
- Open the window or the page containing the procedure.
- Display the different procedures of the window (or page) in the "Project explorer" pane.
- Open the desired dictionary in the "Dictionary" pane.
- Select the name of the procedure in the "Project explorer" pane and perform a "Drag and Drop" toward the dictionary.
- Confirm the subscription of the procedure. The procedure is displayed in the dictionary.
Remark: To associate a descriptive note with the procedure found in the dictionary, enter an explanation text in the properties of the element ("Properties" in the context menu) Creating groups of elements in a dictionary You have the ability to create groups of elements in a dictionary. These groups are used to group different WINDEV, WEBDEV or WINDEV Mobile elements. To create a group of elements in the current dictionary: - In the "Dictionary" pane, select the name of the dictionary.
- Select "Create a group" from the popup menu (right mouse click).
- Enter the name of the created group.
The elements can be added to the group by "Drag and Drop". Copying elements from a dictionary All elements found in the dictionary can be re-used in any WINDEV, WEBDEV or WINDEV Mobile application. To re-use a dictionary element, you must: - Open the dictionary in the pane.
- Copy the dictionary element to the relevant editor by Drag and Drop. During this copy, the subscription to the dictionary object is proposed.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|