|
|
|
|
- Overview
- How to?
- Defining a new eYe magnet
- Modifying an existing eYe magnet
- Deleting an eYe magnet
eYe magnet: conditional formatting of controls
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.
Defining a new eYe magnet To define a new eYe magnet (conditional formatting): - Open the control description window (select "Description" in the context menu).
- 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). - 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. - 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: - 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: - Open the control description window (select "Description" in the context menu).
- In the "UI" tab, click the description of the current eYe magnet to open the edit window of eYe magnets.
- Click to open the edit window.
- 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: - Open the control description window (select "Description" in the context menu).
- In the "UI" tab, click the description of the current eYe magnet to open the edit window of eYe magnets.
- Click the button of the eYe magnet to delete.
Related Examples:
|
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|