PC SOFT

WINDEV的在线文档

  • Overview
  • Characteristics of the columns found in a Table control in a window
  • Movable column
  • Sortable column
  • Column with search (magnifier)
  • Adjustable column
  • Limitations
  • Fixed column, anchored column
  • Fixed column
  • Anchored column
  • Progress Bar column
  • Description
  • Progress bar with a different upper bound for each row of the Table control
  • Properties that can be used on a Progress Bar cell
  • Memory column and Check Box column (browsing Table control loaded in memory)
  • Memory column and Check Box column
  • Style of Check Box columns
文档页面当前正在翻译。对于此延迟我们深表歉意。
您可以自愿地帮助我们翻译您想要的文档段落,然后只需通过以下地址与我们联系: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 columns allow you to display information in a Table control. The same type of information is displayed in the same column.

WinDev Note: The columns found in the TreeView Table controls have the same characteristics as the columns found in the Table controls.

The following types of data can be displayed in a column:
  • Numeric
  • Date
  • Caption
  • Check box
  • Duration
  • Container
    (not available in Java and in WinDev Mobile)
Note: To call 图示图片 in a column, use a Text column.

WinDev You have the ability to perform calculations on the content of one or more columns. See Managing the calculations in the columns of a Table control for more details.

Specific characteristics can be configured for each type of column.

The programming of each type of column corresponds to the programming of the corresponding control.

The following paragraphs present the main characteristics of the Table control columns displayed in a window, available regardless of the column type. For the columns of Table controls displayed in a page, see Characteristics of the columns found in a Table control in a page.

Characteristics of the columns found in a Table control in a window
Most characteristics of the columns found in a Table control are configured in the "General" tab of the characteristics of each column.

Movable column

The user will be able to move the column in the Table control and to change the order in which the columns are displayed.

Sortable column

The user will be able to sort the column via a click performed on its header. This option is available:
  • for all the columns found in a memory Table or Treeview Table control.
  • for some columns found in the browsing Table control (only the columns based on key items and not filtered).
WinDev The "Sort options" button is used to define the characteristics of the sort on the Text columns.

andare used to find out the sort direction of the column.

You have the ability to customize the images used. See Configuring the titles of the columns found in a Table control for more details.

Programming: The sort can also be performed by programming via the following functions:

表格数据排序Used to sort the content of a Table or TreeView Table control on one or more columns
表格排序分支Allows you to sort a branch of a TreeView Table control on one or more columns (lexicographical sort).

WinDev An optional process can also be managed: Whenever the column is sorted.

Column with search (magnifier)

The user will be able to perform a search in the column.

WinDev Two methods are available:
  • The user types the sought word directly. This search is automatically performed in the sorted column.
  • A click performed in the header of the column with magnifier is used to display an edit control. The user will only have to type the sought word.

The search is available:
  • for all the columns found in a memory Table control.
  • for the columns of browsing Table controls with automatic browse (only the sortable columns based on key items and not filtered).
Caution: The search is not available:
  • for the items associated with a multi-file link.
  • for the Table controls that use a non-proportional scrollbar ("Proportional scrollbar" unchecked in the "Details" tab of the description window of the Table control).
WinDev You have the ability to customize the image used for the magnifier. See Configuring the titles of the columns found in a Table control for more details.

Programming: The search can be performed by programming via the following functions:
表格查找数据Seeks a value in a column of a memory Table, browsing Table or TreeView Table.
表格查找子元素Seeks a value in a column of a TreeView Table control, in a specified branch.

WinDev An optional process can also be managed: Whenever performing a search with the column magnifier.

Adjustable column

The user will be able to resize the columns.

Programming: The columns can be resized by programming with 表格调整.

WinDevWindows

Limitations

If a multiline column is used with the Ellipsis mode, the multi-line mode will be disabled in this column.

Fixed column, anchored column
WinDevWindows

Fixed column

A fixed column will always remain displayed during the horizontal scroll of the Table columns. If the column is not fixed, it will move along with the other columns. The fixed columns are always located on the left of the Table control.

The number of fixed columns can be defined in the description of the Table control ("Details" tab). The first x columns will be fixed.

WinDevWindows

Anchored column

The anchored column is the column onto which the anchoring options will be applied. The width of the column will evolve according to the size of the window and to the size of the Table control.

You have the ability to define:

  • the number of the anchored column in the "General" tab of the Table control description.
  • the anchor rate in width of a column in the "GUI" tab of the description window of the column.

Progress Bar column
WinDevWindows

Description

The configuration of the progress bar is performed in the "General" tab of the column description. You can configure:
  • the initial value of the progress bar,
  • the maximum value of the progress bar,
  • the active image and the background image.
The "Details" tab of the column description is used to configure the display of the progress percentage, ...

WinDevWindows

Progress bar with a different upper bound for each row of the Table control

You have the ability to display a progress bar with a different upper bound for each row. In this case, you must:
  1. Assign ..最大界限 to 100 for the column.
  2. In the display code of the row, perform the requested calculation:
    <NameProgressBarColumn> = <Value of Progress Bar>*100/<Max Value>

WinDevWindows

Properties that can be used on a Progress Bar cell

You have the ability to use ..最大界限 and ..最小界限 on the Progress Bar cells by using the following syntax:
<Column Name>[<Row Number>]..最大界限 = <Value>
<Column Name>[<Row Number>]..最小界限 = <Value>

Memory column and Check Box column (browsing Table control loaded in memory)
WinDevWindows

Memory column and Check Box column

In a browsing Table control loaded in memory, you have the ability to create memory columns: these columns are not linked to a data file. These columns can display a calculation for example, ...

The "Check Box" columns in a browsing Table control loaded in memory are specific memory columns. When moving the scrollbar, the boxes that have been checked are automatically kept.

Note: In a browsing Table control with direct access, the Check Box memory columns (not linked to an item) are not kept when scrolling the rows.

WinDevWindows

Style of Check Box columns

You have the ability to define the style of the check boxes found in the columns: you can choose the image that will be used when the option is selected for example.

To define the style of Check Box columns:

  1. Display the description window of the Table control.
  2. In the "Style" tab, select the "Check Box column" element. You can:
    • select the style of the checkmark among one of the preset styles.
    • choose a specific image for representing the checkmark ("Checkmark style" option corresponding to "Checkmark image").