|
|
|
|
|
- Overview
- Create a favorite field
- Remarks
- Reusing a Favorite control
- Sharing a Favorite control
It is not uncommon for developers to recreate the same controls, with the same style and (almost) the same code in the same project, without using a template or an Internal Window control. The most common example is the "OK" and "Cancel" buttons. Most developers tend to copy an existing control from another page or window, paste it and then edit it. Favorite controls make this whole process much simpler. Remarks - You can also create a Favorite control from a selection of controls.
- Favorite controls can only be used in the environment in which they were created.
- A Favorite control from a window cannot be used in a page (and vice versa).
- A Favorite control from a WINDEV window cannot be used in a WINDEV Mobile window (and vice versa).
- Favorite controls are linked to a project. However, they can be used in multiple projects. For more details, see Sharing a Favorite control.
- You can edit a Favorite control directly from the list. Simply right-click the desired control in the list and select "Edit".
Reusing a Favorite control There are several ways to reuse a Favorite control: - "Favorite controls" on the "Creation" tab:
- On the "Creation" tab, in the "Smart & Favorites" group, expand "Favorite controls".
- Search for the desired Favorite control (by keyword or category).
- Select the desired control and drop it onto the current window or page.
- The control is created in the current page or window.
- Preset controls associated with a type of control:
- On the "Creation" tab, expand the type of control you want to create.
- Any Favorite controls associated with the selected type of control will appear at the top of the list.
- Select the desired control and drop it onto the current window or page.
- The control is created in the current page or window.
Sharing a Favorite control The descriptions of Favorite controls are located in the "Fav" subdirectory of the project in which the control was created.. You can share Favorite controls using the Source Code Manager (SCM). Simply share the "Fav" directory, and the Favorite controls will be available in the different projects. It is also possible to copy favorite fields from one project to another: simply copy the "Fav" directory to the desired project.. Note: In the "Fav" folder, favorites are organized by product..
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|