PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
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
Returns the width of a window, adapted to the content of controls.
Example
// Displays the table
TableDisplay(WIN_Price.TABLE_Price)
// Calculates the proper width
nWidthOK is int
nWidthOK = WinGiveSuitableWidth(WIN_Price)
IF nWidthOK < 640 THEN
WIN_Price..Width = nWidthOK
ELSE
WIN_Price..Width = 640
END
Syntax
<Result> = WinGiveSuitableWidth([<Window>])
<Result>: Integer
Width adapted to the content of the controls for optimizing the display of controls in the window. This width is expressed in pixels.
<Window>: Optional character string (with or without quotes)
Name of window to use. The current window will be used if this parameter is not specified.
Remarks
The calculation of the width adapted to the window is possible only if the window contains one of the following controls anchored in width:
  • List box
  • Table
  • Looper
  • TreeView
  • ListView
  • Multiline edit control
Components
WINDEVReports and Queries wd230obj.dll
Linux wd230obj.so
Minimum required version
  • Version 17
This page is also available for…
Comments
Click [Add] to post a comment