PC SOFT

WINDEV的在线文档

  • Overview
  • Assisted input in a window
  • Browsing assisted input
  • Programmed assisted input
文档页面当前正在翻译。对于此延迟我们深表歉意。
您可以自愿地帮助我们翻译您想要的文档段落,然后只需通过以下地址与我们联系: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 principle of the assisted input in an edit control is straightforward: when the user starts to type in an edit control, a list is automatically expanded below the control, proposing the values that start with the text currently typed.

The assisted input can be implemented from the editor or it can be customized by programming.

WinDev
Assisted input in a window
WinDev Several types of assisted input are available:
  • "Browsing" assisted input: The edit control is linked to an item found in a data file or in a query. WebDev manages the display of data in the list according to the input.
  • WinDev Programmed assisted input: The assisted input is performed from a custom list of data. The display of data in the list according to the input is customized.

Browsing assisted input

WinDev To implement the "Browsing" assisted input:
  1. In the description window of the edit control:
    • Check whether the edit control is linked to an item found in a data file or in a query ("Link" tab).
      Caution: The item must be a key.
    • In the "Details" tab, check "Assisted input (Link required)".
  2. Validate the description window of the edit control.
At run time, as soon as the first letter is typed in the control, the letters corresponding to an element found in the data file are automatically proposed.

WinDev

Programmed assisted input

The programmed assisted input can be used on any edit control (linked or not to an item found in a data file).

To use the programmed assisted input:

  1. Initialize the list of elements taken into account by the assisted input via 辅助输入添加.
  2. In the "Whenever modified" code of the control:
Note: To highlight the terms typed by the user, you have the ability to use 图示画笔 and 图示字体粗体.

Example:

// Clears the content of the previous assisted input
辅助输入删除全部EDT_Cities
// Performs the search with the term typed ("NEW" for example)
H执行查询QRY_FindCityh查询.默认"NEW"
// Browse the results
对于每个QRY_FindCity
// Builds the line to display
sValueFound图示字体粗体)+图示画笔浅红色)+"NEW"+...
图示字体粗体)+图示画笔黑色
// Adds the line to the assisted input
辅助输入添加EDT_CitiessValueFound
结束