PC SOFT

WINDEV的在线文档

  • Overview
  • How to proceed?
  • Defining a new eYe magnet
  • Modifying an existing eYe magnet
  • Deleting an eYe magnet
文档页面当前正在翻译。对于此延迟我们深表歉意。
您可以自愿地帮助我们翻译您想要的文档段落,然后只需通过以下地址与我们联系:info@cn.windev.com
产品
WinDevWebDev-服务器代码WebDev-浏览器代码WinDev Mobile报表和查询
平台
WindowsLinuxWindows MobileWindows PhoneWindows Store appsAndroidAndroid Widget iPhone/iPad
语言
JavaPHPAjax用户代码(MCU)外部语言
数据库
HFSQLHFSQL Client/Server存储过程HF 5.5OLE DBODBC本地访问

Overview
The "eYe magnet" (also called conditional formatting) consists in modifying the visual aspect of a control in order to attract the attention of the user 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 mode.
  • Columns of treeview table in edit mode.
  • 20版本和更高版本
    Cells of Pivot Table control.
    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 the 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).
    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).
    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 the actions is as follows:

Editing the conditions and the actions of an eYe magnet

  • The buttonsandare 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 the 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. ClickEdit button of eYe magnetto 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 the 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. ClickDeletion button of eYe magnetof the eYe magnet to delete.