ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / Developing an application or website / Controls, windows and pages / Controls: Options and actions
  • Overview
  • How to?
  • 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/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
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.
  • Columns of Table controls in input mode.
  • Columns of TreeView Table controls in input mode.
  • Cells of Pivot Table control.
How to?

Defining a new eYe magnet

To define a new eYe magnet (conditional formatting):
  1. Open the control description window (select "Description" in the context menu).
  2. In the "UI" tab, click the link "eYe magnet: <No layout>" or the description of the current eYe magnet (if an eYe magnet was already defined).
    Remark: For the cells of a Pivot Table control, in the "Content" tab, click the desired 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. Open the control description window (select "Description" in the context menu).
  2. In the "UI" 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. For more details, see Defining a new eYe magnet.

Deleting an eYe magnet

To delete an existing eYe magnet:
  1. Open the control description window (select "Description" in the context menu).
  2. In the "UI" 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 version required
  • Version 15
Comments
Click [Add] to post a comment

Last update: 06/27/2023

Send a report | Local help