PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
  • Non-resizable windows
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
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.
Versions 24 and later
Android This function is now available for Android applications.
iPhone/iPad This function is now available for iPhone/iPad applications.
New in version 24
Android This function is now available for Android applications.
iPhone/iPad This function is now available for iPhone/iPad applications.
Android This function is now available for Android applications.
iPhone/iPad This function is now available for iPhone/iPad applications.
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

Change the height and/or width of a window Hide the details

WinSize(<Window> , <Width> , <Height>)
<Window>: Window name
Name or alias of window to use.
If this parameter corresponds to an empty string (""), the width and/or height of current window is modified.
Versions 24 and later
AndroidiPhone/iPadIOS WidgetMac Catalyst Remark: The window must not be maximized.
New in version 24
AndroidiPhone/iPadIOS WidgetMac Catalyst Remark: The window must not be maximized.
AndroidiPhone/iPadIOS WidgetMac Catalyst Remark: The window must not be maximized.
<Width>: entier
New total window width. This value must be between the minimum width (obtained with Property MinWidth) and the maximum width (obtained with Property MaxWidth).
To find out the current window width, use Width.
To avoid modifying this parameter, use the Default constant.
<Height>: entier
New total window height. This value must be between the minimum height (obtained with Property MinHeight) and the maximum height (obtained with Property MaxHeight).
To find out the current window height, 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 window to use.
If this parameter corresponds to an empty string (""), the width and/or height of current window is modified and the current window is moved.
Versions 24 and later
AndroidiPhone/iPadIOS WidgetMac Catalyst Remark: The window must not be maximized.
New in version 24
AndroidiPhone/iPadIOS WidgetMac Catalyst Remark: The window must not be maximized.
AndroidiPhone/iPadIOS WidgetMac Catalyst Remark: The window must not be maximized.
<Horizontal position>: entier
New horizontal position of window in relation to the top left corner of the screen.
To avoid modifying this parameter, use the Default constant.
<Vertical position>: entier
New vertical position of window in relation to the top left corner of the screen.
To avoid modifying this parameter, use the Default constant.
<Width>: entier
New total window width. This value must be between the minimum width (obtained with Property MinWidth) and the maximum width (obtained with Property MaxWidth).
To find out the current width of a window, use Width.
To avoid modifying this parameter, use the Default constant.
<Height>: entier
New total window height. This value must be between the minimum height (obtained with Property MinHeight) and the maximum height (obtained with Property MaxHeight).
To find out the current height of a window, use Height.
To avoid modifying this parameter, use the Default constant.
AndroidiPhone/iPadIOS WidgetMac Catalyst

Finding out or modifying 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.
Versions 24 and later
AndroidiPhone/iPadIOS WidgetMac Catalyst Not available.
New in version 24
AndroidiPhone/iPadIOS WidgetMac Catalyst Not available.
AndroidiPhone/iPadIOS WidgetMac Catalyst Not available.
NormalSizeWindow neither maximized, nor minimized.
<Window>: Window name
Name or alias of window to use.
If this parameter is not specified or if it corresponds to an empty string (""), the display mode of current window is returned.
Versions 24 and later
AndroidiPhone/iPadIOS WidgetMac Catalyst Remark: The window must not be maximized.
New in version 24
AndroidiPhone/iPadIOS WidgetMac Catalyst Remark: The window must not be maximized.
AndroidiPhone/iPadIOS WidgetMac Catalyst Remark: The window must not be maximized.
<Display mode>: Optional constant
Specifies the new window display mode:
MaxSizeMaximized window.
MinSizeMinimized window.
Versions 24 and later
iPhone/iPadIOS WidgetMac Catalyst Not available.
New in version 24
iPhone/iPadIOS WidgetMac Catalyst Not available.
iPhone/iPadIOS WidgetMac Catalyst Not available.
NormalSizeWindow neither maximized, nor minimized.
Versions 24 and later
Android This parameter is not available. It is not possible to modify the window display mode.
New in version 24
Android This parameter is not available. It is not possible to modify the window display mode.
Android This parameter is not available. It is not possible to modify 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: wd270obj.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment