PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Overview
  • Title of columns
  • Image for the title of columns
  • Multiline column title
  • Orientation of column title
  • Background image for the title area of column
  • Title-header of columns
  • Icons displayed in the columns
  • Displaying the sort icon
  • Customizing the "Magnifier", Sort, Popup Menu and Filter icons
  • Position of sort and search icons
  • Default search mode
  • Selection bar
  • Displaying (or not) a selection bar on the column
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Overview
The column title is an important element of a Table control. Indeed, the title of columns is used to perform operations regarding the appearance (ability to include images) as well as the features (filter, search).
This help page presents the available features:
Versions 20 and later
WINDEV MobileAndroid The Table control (and its columns) is now available for the Android applications.
WINDEV MobileiPhone/iPad The Table control (and its columns) is now available for the iPhone/iPad applications.
New in version 20
WINDEV MobileAndroid The Table control (and its columns) is now available for the Android applications.
WINDEV MobileiPhone/iPad The Table control (and its columns) is now available for the iPhone/iPad applications.
WINDEV MobileAndroid The Table control (and its columns) is now available for the Android applications.
WINDEV MobileiPhone/iPad The Table control (and its columns) is now available for the iPhone/iPad applications.
Title of columns
WINDEV

Image for the title of columns

An image can be displayed in the column title. If a caption is displayed in the column title, this image will be positioned on the left of caption. This image can be inserted in the editor or by programming.
To insert an image into the title of a column in the editor:
  1. Display the description window of column ("Description" from the popup menu).
  2. In the "General" tab, specify the image that will be used for the column title. The "Catalog" button allows you to choose an image found in the image catalog of WINDEV.In the "General" tab, specify the image that will be used for the column title via the Drop-down button button:
    • The "Browse" option is used to select an image file accessible from your computer.
    • The "Catalog" button is used to choose an image found in the image catalog of WINDEV.
  3. Validate. The image is displayed in the column title in the editor.
To display an image in a column title by programming, use ..TitleImage.

Multiline column title

By default, column title is displayed on a single line. For longer titles, you have the ability to use multiline column titles.
To define a multiline column title:
  1. Display the description window of Table control ("Description" from the popup menu).
  2. In the "Details" tab, check "Multi-line column title".
  3. Validate.
Notes:
  • The title of columns supports the RTF format and the graphic functions (gXXX functions).
  • Versions 15 and later
    In the window editor, the height of column titles can be modified with the mouse.
    New in version 15
    In the window editor, the height of column titles can be modified with the mouse.
    In the window editor, the height of column titles can be modified with the mouse.
  • The title of columns can be modified by programming with ..Title or with ..Caption.
  • Versions 19 and later
    The height of column titles can be modified by programming with ..TitleHeight.
    New in version 19
    The height of column titles can be modified by programming with ..TitleHeight.
    The height of column titles can be modified by programming with ..TitleHeight.
Versions 16 and later
WINDEV

Orientation of column title

In a Table control, you have the ability to define a writing angle for the titles (in degrees). This allows you to create slanted column titles.
To slant the title of columns:
  1. Display the description window of Table control ("Description" from the popup menu).
  2. In the "Details" tab, enter "Angle for the title of columns" (in degrees). The arrow button found beside the control is used to precisely select the requested angle.
  3. Validate.
To change the orientation of column title by programming, use ..OrientationTitle.
New in version 16
WINDEV

Orientation of column title

In a Table control, you have the ability to define a writing angle for the titles (in degrees). This allows you to create slanted column titles.
To slant the title of columns:
  1. Display the description window of Table control ("Description" from the popup menu).
  2. In the "Details" tab, enter "Angle for the title of columns" (in degrees). The arrow button found beside the control is used to precisely select the requested angle.
  3. Validate.
To change the orientation of column title by programming, use ..OrientationTitle.
WINDEV

Orientation of column title

In a Table control, you have the ability to define a writing angle for the titles (in degrees). This allows you to create slanted column titles.
To slant the title of columns:
  1. Display the description window of Table control ("Description" from the popup menu).
  2. In the "Details" tab, enter "Angle for the title of columns" (in degrees). The arrow button found beside the control is used to precisely select the requested angle.
  3. Validate.
To change the orientation of column title by programming, use ..OrientationTitle.
WINDEVWindows Mobile

Background image for the title area of column

An image can be included in each title cell.
To customize the image of title area:
  1. Display the "Style" tab in the description window of Table control ("Description" from the popup menu).
  2. Select the "Border of column title" element.
  3. Open the "Border" combo box and select "Image (9-image mode)".
  4. Click the "Right arrow" button found to the right of the "Border" combo box. A window for configuring the image of column title is opened.
  5. Select the image of border to use. This image can be selected in the image catalog. The image catalog only proposes the images that can be used as column title.Select the image of border to use by clicking the Drop-down button button:
    • The "Browse" option is used to select an image file accessible from your computer.
    • The "Catalog" button is used to choose an image found in the image catalog of WINDEV. The image catalog only proposes the images that can be used as column title.
  6. If the selected image contains several states, specify this number of states.
  7. Close the window for configuring the image of title cells.
  8. Validate.
Note: The "Column title border" element found in the "Style" tab can also be used to configure the height of title area.
Versions 18 and later
WINDEVAndroidiPhone/iPad

Title-header of columns

You have the ability to define a title-header of columns. A title-header of columns is an additional title displayed above the title of one or more columns.
To define a title-header of columns:
  1. Display the "Details" tab in the description window of Table control ("Description" from the popup menu).
  2. Click the "Edit the title-headers of columns" button.
  3. The different table columns are displayed in the window that is opened.
    In this window, you can:
    • 1: Add title-headers ("+" button) or delete title-headers ("-" button).
    • 2: Resize and merge the different cells of title-headers by hovering the separators.
    • 3: Rename the cells of title-headers by clicking them.
  4. Validate.
Notes:
  • The title-headers of columns can be created by programming with TableAddTitleHeader.
  • ..Merge is used to merge:
    • the cells of a Table control.
    • the titles of columns.
  • If the title-headers of columns are enabled, the modification of the caption of columns via the description window of the column is ignored: the caption must be modified in the edit window of title-headers of columns.
  • Versions 22 and later
    WINDEV ..TitleHeader is used to:
    • Find out and modify the title and the aspect of a title-header of table column.
    • Find out the number of title-headers for a table column.
    New in version 22
    WINDEV ..TitleHeader is used to:
    • Find out and modify the title and the aspect of a title-header of table column.
    • Find out the number of title-headers for a table column.
    WINDEV ..TitleHeader is used to:
    • Find out and modify the title and the aspect of a title-header of table column.
    • Find out the number of title-headers for a table column.
New in version 18
WINDEVAndroidiPhone/iPad

Title-header of columns

You have the ability to define a title-header of columns. A title-header of columns is an additional title displayed above the title of one or more columns.
To define a title-header of columns:
  1. Display the "Details" tab in the description window of Table control ("Description" from the popup menu).
  2. Click the "Edit the title-headers of columns" button.
  3. The different table columns are displayed in the window that is opened.
    In this window, you can:
    • 1: Add title-headers ("+" button) or delete title-headers ("-" button).
    • 2: Resize and merge the different cells of title-headers by hovering the separators.
    • 3: Rename the cells of title-headers by clicking them.
  4. Validate.
Notes:
  • The title-headers of columns can be created by programming with TableAddTitleHeader.
  • ..Merge is used to merge:
    • the cells of a Table control.
    • the titles of columns.
  • If the title-headers of columns are enabled, the modification of the caption of columns via the description window of the column is ignored: the caption must be modified in the edit window of title-headers of columns.
  • Versions 22 and later
    WINDEV ..TitleHeader is used to:
    • Find out and modify the title and the aspect of a title-header of table column.
    • Find out the number of title-headers for a table column.
    New in version 22
    WINDEV ..TitleHeader is used to:
    • Find out and modify the title and the aspect of a title-header of table column.
    • Find out the number of title-headers for a table column.
    WINDEV ..TitleHeader is used to:
    • Find out and modify the title and the aspect of a title-header of table column.
    • Find out the number of title-headers for a table column.
WINDEVAndroidiPhone/iPad

Title-header of columns

You have the ability to define a title-header of columns. A title-header of columns is an additional title displayed above the title of one or more columns.
To define a title-header of columns:
  1. Display the "Details" tab in the description window of Table control ("Description" from the popup menu).
  2. Click the "Edit the title-headers of columns" button.
  3. The different table columns are displayed in the window that is opened.
    In this window, you can:
    • 1: Add title-headers ("+" button) or delete title-headers ("-" button).
    • 2: Resize and merge the different cells of title-headers by hovering the separators.
    • 3: Rename the cells of title-headers by clicking them.
  4. Validate.
Notes:
  • The title-headers of columns can be created by programming with TableAddTitleHeader.
  • ..Merge is used to merge:
    • the cells of a Table control.
    • the titles of columns.
  • If the title-headers of columns are enabled, the modification of the caption of columns via the description window of the column is ignored: the caption must be modified in the edit window of title-headers of columns.
  • Versions 22 and later
    WINDEV ..TitleHeader is used to:
    • Find out and modify the title and the aspect of a title-header of table column.
    • Find out the number of title-headers for a table column.
    New in version 22
    WINDEV ..TitleHeader is used to:
    • Find out and modify the title and the aspect of a title-header of table column.
    • Find out the number of title-headers for a table column.
    WINDEV ..TitleHeader is used to:
    • Find out and modify the title and the aspect of a title-header of table column.
    • Find out the number of title-headers for a table column.
Icons displayed in the columns

Displaying the sort icon

In a sortable column, the sort icon is displayed when the user clicks the column. The sort icon indicates the sort direction of the column.
You also have the ability to permanently display a sort icon in the column. In this case, when the column is not sorted, an icon indicates to the user that a sort can be performed on this column.
To display the sort icon:
  1. Display the "Style" tab in the description window of Table control ("Description" from the popup menu).
  2. Select the "Border of column title" element.
  3. Select "Display the sort icon".
WINDEVWindows Mobile

Customizing the "Magnifier", Sort, Popup Menu and Filter icons

In a column, several icons are used to indicate to the user whether the column is sortable, whether the column is sorted and in which direction, whether a search or a filter can be done in the column.
To customize the style of these elements:
  1. Display the "Style" tab in the description window of Table control ("Description" from the popup menu).
  2. Select the "Border of column title" element.
  3. Click the "Sort/Magnifier image" button and select the image that will be used for the magnifier.
    The size of this image must be set to 53 x 33 pixels and the image must contain the following elements:
    • Image of sortable column: 9 x 8 pixels
    • Image of sorted column: sorted in ascending order and in descending order (22 x 9 pixels for each drawing)
    • Image of magnifier: grayed, enabled and pressed (33 x 11 pixels for each drawing)
    • Image of popup menu (10 x 14 pixels)
    • Image of filter: grayed, enabled and pressed (33 x 11 pixels for each drawing)
    Click the "Sort/Magnifier image" button and select the image that will be used for the magnifier via the Drop-down button button ("Browse" or "Catalog" button).
    The size of this image must be set to 53 x 33 pixels and the image must contain the following elements:
    • Image of sortable column: 9 x 8 pixels
    • Image of sorted column: sorted in ascending order and in descending order (22 x 9 pixels for each drawing)
    • Image of magnifier: grayed, enabled and pressed (33 x 11 pixels for each drawing)
    • Image of popup menu (10 x 14 pixels)
    • Image of filter: grayed, enabled and pressed (33 x 11 pixels for each drawing)
For example:
WINDEVWindows Mobile

Position of sort and search icons

The different icons displayed in the column title have a specific position:
  • the icons used to indicate to the user whether the column is sortable, whether the column is sorted and in which direction are displayed on the left.
  • the icons used to indicate whether a search or a filter can be performed in the column are displayed on the right.
To customize the position of these elements:
  1. Display the description window of column ("Description" from the popup menu).
  2. In the "Style" tab, select the "Border of column title" element.
  3. Click the "Position of Sort/Magnifier Image" image and specify the position of the different icons in relation to the border of the column title.
WINDEV

Default search mode

A column of Table control can allow the user to perform a search or set a filter. You have the ability to choose the operating mode of the Table control columns:
  • Magnifier mode = Search: When characters are typed by the user in the column header, a search will be automatically performed on the content of column. The rows whose content starts with these characters will be displayed.
  • Magnifier mode = <Contains> filter: When characters are typed by the user in the column header, a search will be automatically performed on the content of column. The rows whose content contains these characters will be displayed.
To configure the default search mode of the columns in the editor:
  1. Display the description window of Table control ("Description" from the popup menu).
  2. In the "General" tab, specify the requested "Magnifier mode".
  3. Validate.
To configure the default search mode of columns by programming, use ..MagnifierMode. This property allows you to use all the available modes.
Selection bar
WINDEV

Displaying (or not) a selection bar on the column

In a Table control, the selection bar is used to quickly view the selected rows. In some cases, you may want to display the selection bar on some columns only of the Table control.
To avoid displaying the selection bar on some columns in the editor:
  1. Display the description window of column ("Description" from the popup menu).
  2. In the Details tab, uncheck "Display the bar".
  3. Validate.
To avoid displaying the selection bar on some columns by programming, use ..BarVisible.
Minimum required version
  • Version 14
This page is also available for…
Comments
Click [Add] to post a comment