PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Use conditions
  • Creating/Deleting columns
  • Invisible columns
  • Equivalence between TableAdjust and the properties of controls
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
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.
Versions 16 and later
WINDEVLinux This function is now available for the WINDEV applications in Linux.
New in version 16
WINDEVLinux This function is now available for the WINDEV applications in Linux.
WINDEVLinux This function is now available for the WINDEV applications in Linux.
Example
// Modify the titles and width of the two
// first columns found in the "TABLE_ProductTable" control
TableAdjust(TABLE_ProductTable, "Ref" + TAB + "50" + TAB + ...
"C" + TAB + "12" + RC + "Designation" + TAB + "200" + ...
TAB + "G" + TAB + "12")
Syntax
TableAdjust(<Table Control> [, <Format>])
<Table Control>: Control name
Name of control to use. This control can correspond to:
  • a Table control,
  • a TreeView Table control.
If this parameter corresponds to an empty string (""), the control to which the current process belongs will be used.
<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>
where:
<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).
Note: 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.
Remarks

Use conditions

TableAdjust can be used on:
  • A browsing or memory control.
  • A single-selection or multi-selection control.

Creating/Deleting columns

TableAdjust 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 TableAdjust.
If the number of columns found in the control is greater than the number of columns handled by TableAdjust, the last columns will have no title and a null size.

Invisible columns

If the columns handled by TableAdjust are invisible, these columns will automatically become visible.

Equivalence between TableAdjust and the properties of controls

..Title, ..Width, ..Size and ..HorizontalAlignment have the same effect as TableAdjust.
Components
WINDEVReports and Queries wd230obj.dll
Windows Mobile wp230obj.dll
Java wd230java.jar
Linux wd230obj.so
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment