Help / WLanguage / WLanguage functions / Controls, pages and windows / Table functions
  • Use conditions
  • Creating/Deleting columns
  • Invisible columns
  • Equivalence between <Table>.Adjust with the control properties
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WindowsLinuxPHPWEBDEV - Browser code
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Stored procedures
Adjusts the title and size of columns found in a Table or TreeView Table control. You can define:
  • the column title,
  • the column width,
  • the alignment of column elements,
  • the input size of column.
// Modify the titles and width of the two
// first columns found in the "TABLE_ProductTable" control
TABLE_ProductTable.Adjust("Ref" + TAB + "50" + TAB + ...
"C" + TAB + "12" + RC + "Designation" + TAB + "200" + ...
TAB + "G" + TAB + "12")
<Table control>.Adjust([<Format>])
<Table control>: Control name
Name of the control to be used. This control can correspond to:
  • a Table control,
  • a TreeView Table control.
<Format>: Optional character string
This parameter has the following format:
<Title of column 1> + TAB + <Size of column 1> + TAB + ...
<Alignment of elements> + TAB + <Input size> + CR + ...
<Title of column N> + TAB + <Size of column N> + TAB + ...
<Alignment of elements> + TAB + <Input size>
<Title of column>Character stringModifies the title of column.
<Size of column>IntegerModifies the size of column (in characters).
<Alignment of elements>CharacterModifies the alignment of column elements:
  • "C": Centers the elements in the column
  • "G": Aligns the elements to left
  • "D": Aligns the elements to right
<Input size>IntegerModifies the number of characters that can be typed in the column (in number of characters and not in pixels).
Remark: The width of a character corresponds to the width of letter 'E' in the font used for the control title.

If this parameter is not specified, the width of columns is adjusted to the smallest possible width in order for the data to be visible.
Java This parameter must necessarily be specified.

Use conditions

<Table>.Adjust can be used on:
  • a Table or TreeView Table control based on a data file.
  • a Table or TreeView Table control populated programmatically.
  • a single-selection or multi-selection control.

Creating/Deleting columns

<Table>.Adjust creates no column and deletes no column. The control columns must have been described in the window editor beforehand. Make sure that a sufficient number of columns exists before they are handled by <Table>.Adjust.
If the number of columns found in the control is greater than the number of columns handled by <Table>.Adjust, the last columns will have no title and a null size.

Invisible columns

If the columns managed by <Table>.Adjust are invisible, these columns will automatically become visible.

Equivalence between <Table>.Adjust with the control properties

The Title, Width, Size and HorizontalAlignment properties have the same effect as the <Table>.Adjust function.
Component: wd290obj.dll
Minimum version required
  • Version 23
This page is also available for…
Click [Add] to post a comment

Last update: 06/20/2023

Send a report | Local help