PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Conditions required to resize the window
  • Effects of resize operation on the window
  • Automatic window resizing
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
WinAdaptSize (Function)
In French: FenAdapteTaille
Adapts the window size to the content of controls. The window is resized in order for the controls to be displayed in the best possible way (no empty row and no scrollbar).
Note: The window is automatically resized if "Resize to fit the control content" is checked in the "GUI" tab of the window description.
Example
// Displays the table
TableDisplay(TABLE_Table1)
// Adapts the size of the window
WinAdaptSize()
Syntax
WinAdaptSize([<Window Name>])
<Window Name>: Optional character string (with or without quotes)
Name or alias of window to use. If this parameter corresponds to an empty string (""), the current window is used.
Remarks

Conditions required to resize the window

The window must contain at least one of the following controls anchored in width and/or in height:
  • List box
  • Table
  • Looper
  • TreeView
  • ListView
  • Multiline edit control
WinAdaptSize has no effect if the window contains no control corresponding to the criteria.

Effects of resize operation on the window

  • The window is reduced if it contains empty rows.
  • The window is enlarged in order for all the rows to be visible (including the rows displayed via a scrollbar).
Notes:
  • The window is not enlarged:
    • above its maximum size (defined by its maximum width and by its maximum height).
    • above the size of the screen.
  • The window is not reduced below its minimum size (defined by its minimum width and by its minimum height).

Automatic window resizing

The window is automatically resized if "Adapt the size to the content of controls" is checked in the window description ("GUI" tab).
Components
WINDEVReports and Queries wd230obj.dll
Minimum required version
  • Version 10
This page is also available for…
Comments
Click [Add] to post a comment