PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Overview
  • How to proceed?
  • Defining a new eYe magnet
  • Modifying an existing eYe magnet
  • Deleting an eYe magnet
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Overview
The "eYe magnet" (also called conditional formatting) consists in modifying the visual aspect of a control in order to attract the user's attention to this control. WINDEV allows you to automatically modify this visual aspect according to a set of conditions.
For example, a control for which the input is mandatory will be displayed on a red background as long as its content remains empty.
The eYe magnet feature applies to the following controls:
  • Edit controls.
  • Combo Box controls.
  • Table columns in edit.
  • Columns of treeview table in edit.
  • Versions 20 and later
    Cells of Pivot Table control.
    New in version 20
    Cells of Pivot Table control.
    Cells of Pivot Table control.
How to proceed?

Defining a new eYe magnet

To define a new eYe magnet (conditional formatting):
  1. Display the description window of control ("Description" from the popup menu).
  2. In the "GUI" tab, click the link "eYe magnet: <No layout>" or the description of the current eYe magnet (if an eYe magnet was already defined).
    Versions 20 and later
    Note: For the cells of a Pivot Table control, in the "Content" tab, click the requested value ("Value to display in the table"). In the "Display" area of characteristics, click the link "eYe magnet: <No layout>" or the description of the current eYe magnet (if an eYe magnet was already defined).
    New in version 20
    Note: For the cells of a Pivot Table control, in the "Content" tab, click the requested value ("Value to display in the table"). In the "Display" area of characteristics, click the link "eYe magnet: <No layout>" or the description of the current eYe magnet (if an eYe magnet was already defined).
    Note: For the cells of a Pivot Table control, in the "Content" tab, click the requested value ("Value to display in the table"). In the "Display" area of characteristics, click the link "eYe magnet: <No layout>" or the description of the current eYe magnet (if an eYe magnet was already defined).
  3. If the control has no formatting yet, the window for creating a conditional formatting is opened directly.
    If one or more formatting already exist for this control, a window presenting the list of eYe magnets is displayed.
  4. Click the "Add an eYe magnet" button to open the description window of an eYe magnet.
The window for describing the conditions and actions is as follows:
Editing the conditions and actions of an eYe magnet
  • The and buttons are used to add or delete conditions or actions.
  • When all the conditions occur simultaneously, all the associated actions are automatically performed.
  • Several eYe magnets can be defined on the same control to perform different actions according to the conditions.
  • The eYe magnet is applied after the processes of the control (Entry in edit, Whenever modified, etc.). Its effects cannot be overloaded by programming.

Modifying an existing eYe magnet

To modify an existing eYe magnet:
  1. Display the description window of control ("Description" from the popup menu).
  2. In the "GUI" tab, click the description of the current eYe magnet to open the edit window of eYe magnets.
  3. Click Edit button of eYe magnet to open the edit window.
  4. Modify the characteristics of the eYe magnet. See Defining a new eYe magnet for more details.

Deleting an eYe magnet

To delete an existing eYe magnet:
  1. Display the description window of control ("Description" from the popup menu).
  2. In the "GUI" tab, click the description of the current eYe magnet to open the edit window of eYe magnets.
  3. Click the Deletion button of eYe magnet button of the eYe magnet to delete.
Related Examples:
The EyeMagnet Unit examples (WINDEV): The EyeMagnet
[ + ] Using the "eYe magnet" mechanism (also called conditional formatting)
The "eYe magnet" consists in modifying the visual aspect of a control in order to attract the user's attention to this control. WINDEV allows you to automatically modify this visual aspect according to a set of conditions.
Minimum required version
  • Version 15
Comments
Click [Add] to post a comment