ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / Editors / Window editor and page editor
  • Overview
  • Create a favorite field
  • Remarks
  • Reusing a Favorite control
  • Sharing a Favorite control
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Favorite controls
Overview
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.
Create a favorite field
To define a Favorite control:
  1. Create the control, customize its appearance and code if necessary.
  2. Right-click the control and select "Add to favorites".
  3. In the window that appears, specify the characteristics of the Favorite control:
    • Title: Favorite field title. This title appears above the control preview in the list of Favorite controls. It also appears as the title of the tooltip that appears when hovering over the Favorite control.
    • The author: Creator of the favorite field.
    • Description: Description of favorite field (purpose, etc.). This description appears in the tooltip that appears when hovering over the Favorite control.
    • The type of field concerned: Type of field for which the favorite field will be proposed (when the field creation menu is scrolled)..
    • Categories: Categories for grouping favorite fields. To create a new category, type its name and press Enter. To use an existing category, enter the first letter of the category.
    • Associated keywords: Keywords used to search for a favorite field in the list of favorite fields.. To use an existing keyword, enter the first letter of the keyword.
    • WINDEVWINDEV Mobile Indicate whether the skin template of the destination window should be applied when the control is dropped. In this case, the style of the control will match the skin template of the host window.
      WEBDEV - Server code Indicate whether the skin of the destination page should be applied when the control is dropped. In this case, the style of the control will match the skin of the host page.
  4. Confirm.
The new Favorite control will appear:
  • in the list of Favorite controls.
  • in the list of preset controls available for each type of control ("Creation" tab).

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:
    1. On the "Creation" tab, in the "Smart & Favorites" group, expand "Favorite controls".
    2. Search for the desired Favorite control (by keyword or category).
    3. Select the desired control and drop it onto the current window or page.
    4. The control is created in the current page or window.
  • Preset controls associated with a type of control:
    1. On the "Creation" tab, expand the type of control you want to create.
    2. Any Favorite controls associated with the selected type of control will appear at the top of the list.
    3. Select the desired control and drop it onto the current window or page.
    4. 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..
See also
Minimum version required
  • Version 2024
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/05/2024

Send a report | Local help