ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Controls, pages and windows / Window functions
  • Non-resizable windows
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
WinSize:
  • returns or modifies the window display mode (maximized, minimized or normal)
  • modifies the window height and/or width,
  • moves the window and modifies a window's height and/or width.
Example
// Augmenter la largeur et la hauteur de la fenêtre "FEN_Saisie"
WinSize(FEN_Saisie, FEN_Saisie.Largeur + 20, FEN_Saisie.Hauteur + 30)
Syntax

Modifying the window height and/or width Hide the details

WinSize(<Window> , <Width> , <Height>)
<Window>: Window name
Name or alias of the window to be used.
If this parameter corresponds to an empty string (""), the width and/or height of current window is modified.
AndroidiPhone/iPadIOS WidgetMac Catalyst Note: The window must be non-maximized.
<Width>: Integer
New total window width. This value must be between the minimum and maximum width (returned by the MinWidth and MaxWidth properties).
To get the current width of a window, use Width.
To avoid modifying this parameter, use the Default constant.
<Height>: Integer
New total window height. This value must be between the minimum and maximum height (returned by the MinHeight and MaxHeight properties).
To get the current height of a window, use Height.
To avoid modifying this parameter, use the Default constant.

Moving a window and/or modifying its height and/or width Hide the details

WinSize(<Window> , <Horizontal position> , <Vertical position> , <Width> , <Height>)
<Window>: Window name
Name or alias of the window to be used.
If this parameter corresponds to an empty string (""), the width and/or height of current window is modified and the current window is moved.
AndroidiPhone/iPadIOS WidgetMac Catalyst Note: The window must be non-maximized.
<Horizontal position>: Integer
New horizontal position of window in relation to the upper-left corner of the screen.
To avoid modifying this parameter, use the Default constant.
<Vertical position>: Integer
New vertical position of window in relation to the upper-left corner of the screen.
To avoid modifying this parameter, use the Default constant.
<Width>: Integer
New total window width. This value must be between the minimum and maximum width (returned by the MinWidth and MaxWidth properties).
To get the current width of a window, use Width.
To avoid modifying this parameter, use the Default constant.
<Height>: Integer
New total window height. This value must be between the minimum and maximum height (returned by the MinHeight and MaxHeight properties).
To get the current height of a window, use Height.
To avoid modifying this parameter, use the Default constant.
AndroidiPhone/iPadIOS WidgetMac Catalyst

Getting or setting the display mode of a window Hide the details

<Result> = WinSize([<Window> [, <Display mode>]])
<Result>: Constant
The window display mode corresponds to one of the following display modes:
  • current if <Display mode> is not specified,
  • before modification if <Display mode> is specified.
This parameter can take for value:
MaxSizeMaximized window.
MinSizeMinimized window.
AndroidiPhone/iPadIOS WidgetMac Catalyst Not available.
NormalSizeWindow neither maximized, nor minimized.
<Window>: Window name
Name or alias of the window to be used.
If this parameter is not specified or is an empty string (""), the display mode of current window is returned.
AndroidiPhone/iPadIOS WidgetMac Catalyst Note: The window must be non-maximized.
<Display mode>: Optional constant
Specifies the new window display mode:
MaxSizeMaximized window.
MinSizeMinimized window.
iPhone/iPadIOS WidgetMac Catalyst Not available.
NormalSizeWindow neither maximized, nor minimized.
Android This parameter is not available. It is not possible to change the window display mode.
Remarks

Non-resizable windows

WinSize is used to modify the window size even if this window is a "non-resizable" window.
Component: wd300obj.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/27/2025

Send a report | Local help