ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
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
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
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 on the "eYe magnet: <Aucune mise en forme>" link, or on the description of the current eYe magnet (if an eYe magnet has already been defined)..
    Note: For cells in a Pivot Table control, in the "Contents" tab, click on the required value ("Value to be displayed in the array").. In the "View" area of the characteristics, click on the link "eYe magnet: <Aucune mise en forme>" or on the description of the current eYe magnet (if an eYe magnet has already been 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 programmatically.

Modifying an existing eYe magnet

To modify an existing eYe magnet:
  1. Open the control description window (select "Description" in the context menu).
  2. On 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. On 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: 09/30/2024

Send a report | Local help