PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK

  • Column width
  • Limits
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
..Width is used to find out and modify the width:
  • of a control or block in a report.
  • of a control (found in a window), window, column found in a table or column found in a list box (including listview).
  • of a control (found in a page), column found in a table or column found in a list box. The control can be stackable or not.
This property also allows you to find out the width of a table cell. To modify its width, modify the width of the corresponding column.
Notes:
  • In a report, the border of the control or block is included in its width. ..WidthInPixel is used to find out the width of a report control in pixels.
  • The width of a control is defined in the editor during the control description.
Example
// Increases the with of "EDT_CustomerName"
EDT_CustomerName..Width = EDT_CustomerName..Width + 15
// Is equivalent to: EDT_CustomerName..Width += 15
// Modify the width of two controls
EDT_CustomerLastName..Width += 100        // Adds 100 pixels
EDT_CustomerFirstName..Width += 10                // Adds 10 pixels
Syntax

Finding out the width of an element Hide the details

<Result> = <Element Name>..Width
<Result>: Real
Width of the specified element. This width is expressed in pixels in a window and/or in a page, and in millimeters in a report.
<Element Name>: Character string (with or without quotes)
Name of the element (control, window, block, ...) to use.

Modifying the width of an element Hide the details

<Element Name>..Width = <New Width>
<Element Name>: Character string (with or without quotes)
Name of the element (control, window, block, ...) to use.
<New Width>: Real
New width for the specified element. This width is expressed in pixels in a window and/or in a page, and in millimeters in a report.
Remarks
Reports and Queries

Column width

When modifying the width of a column in a Table control, the minimum width must also be modified (..MinWidth) if the specified width is less than the minimum width of the column (otherwise, the modification will be ignored).
Horizontal Table control: ..Width modifies the height of the row. ..Height is used to find out the width of the entire table. This property is available in read-only.

Limits

Reports and Queries ..Width cannot be used on a report.
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment