PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • 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.Note: The window is automatically resized if "Adapt the size according to the content" is checked in the "GUI" tab of the window description.
Example
// Displays the Table control
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 control,
  • Table control,
  • Looper control,
  • TreeView control,
  • ListView control,
  • 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).The window is automatically resized if the option "Adapt the size according to the content" is checked in the window description ("GUI" tab).
Component : wd250obj.dll
Minimum version required
  • Version 10
This page is also available for…
Comments
Click [Add] to post a comment