ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Window functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Returns the height of a window, adapted to the content of controls.
Example
// Displays the Table control
TableDisplay(WIN_Price.TABLE_Price)
// Calculates the proper height
nHeightOK is int
nHeightOK = WinGiveSuitableHeight(WIN_Price)
// Resizes the window
IF nHeightOK < 500 THEN
WIN_Price..Height = nHeightOK
ELSE
WIN_Price..Height = 500
END
Syntax
<Result> = WinGiveSuitableHeight([<Window>])
<Result>: Integer
Height adapted to the content of controls for optimizing the display of controls in the window. This height is expressed in pixels.
<Window>: Optional window name
Name of the window to be used. The current window will be used if this parameter is not specified.
Remarks
The calculation of the adapted height of a window is possible only if the window contains one of the following controls anchored in height:
  • List Box control,
  • Table control,
  • Looper control,
  • TreeView control,
  • ListView control,
  • Multiline edit control.
Component: wd290obj.dll
Minimum version required
  • Version 17
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help