PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Non-resizable windows
  • Display mode
  • Buttons of title bar
  • Parent window/Child window
  • Equivalent functions
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
WinSize:
  • returns or modifies the display mode (maximized, minimized or normal) of window
    LinuxWindows Mobile Feature not available.
  • modifies the height and/or width of window,
  • moves the window and modifies the height and/or width of window.
Versions 16 and later
WINDEVLinux This function is now available for the WINDEV applications in Linux.
New in version 16
WINDEVLinux This function is now available for the WINDEV applications in Linux.
WINDEVLinux This function is now available for the WINDEV applications in Linux.
Example
// Increase the width and height of "WIN_Edit" window
WinSize(WIN_Edit, WIN_Edit..Width + 20, WIN_Edit..Height + 30)
Syntax

Modifying the height and/or width of window Hide the details

WinSize(<Window Name> , <Width> , <Height>)
<Window Name>: Character string (with or without quotes)
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.
<Width>: Integer
New total width of window. This value must be included between the minimum width (returned by ..MinWidth) and the maximum width (returned by ..MaxWidth).
To find out the current window width, use ..Width.
To avoid modifying this parameter, use the Default constant.
<Height>: Integer
New total height of window. This value must be included between the minimum height (returned by ..MinHeight) and the maximum height (returned by ..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 Name> , <Horizontal Position> , <Vertical Position> , <Width> , <Height>)
<Window Name>: Character string (with or without quotes)
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.
<Horizontal Position>: Integer
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>: Integer
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>: Integer
New total width of window. This value must be included between the minimum width (returned by ..MinWidth) and the maximum width (returned by ..MaxWidth).
To find out the current window width, use ..Width.
To avoid modifying this parameter, use the Default constant.
<Height>: Integer
New total height of window. This value must be included between the minimum height (returned by ..MinHeight) and the maximum height (returned by ..MaxHeight).
To find out the current window height, use ..Height.
To avoid modifying this parameter, use the Default constant.
WINDEVReports and QueriesWindowsJavaUser code (UMC)

Finding out or modifying the display mode of a window Hide the details

<Result> = WinSize([<Window Name> [, <Display mode>]])
<Result>: Constant
The display mode of window 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.
NormalSizeWindow neither maximized, nor minimized.
<Window Name>: Optional character string (with or without quotes)
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.
<Display mode>: Optional constant
Specifies the new display mode of window:
MaxSizeMaximized window.
MinSizeMinimized window.
NormalSizeWindow neither maximized, nor minimized.
Remarks

Non-resizable windows

WinSize is used to modify the window size even if this window is a "non-resizable" window.

Display mode

If the window size exceeds the resolution of the screen and if "Automatic scrollbars" is checked ("Style" tab of window description), some scrollbars are automatically added to scroll the window.
For example, a window was created in 800*600 full screen (or 240*600). Some scrollbars will appear when this window is displayed in 640*480 (or 240*320).
WINDEVReports and QueriesWindowsLinuxJavaUser code (UMC)

Buttons of title bar

Only the windows containing a maximize button in their title bar can be resized with the mouse.
The windows with no maximize button in their title bar cannot be maximized. In this case, an error will be generated.
The windows with no minimize button in their title bar cannot be minimized. In this case, an error will be generated.
WINDEVReports and QueriesWindowsJavaUser code (UMC)

Parent window/Child window

When a parent window is minimized, all its child windows are minimized at the same time. Only the icon of the parent window is found in the Windows desktop.
WINDEVReports and QueriesWindowsJavaUser code (UMC)

Equivalent functions

  • WinSize("", MinSize) is equivalent to Iconize().
  • WinSize("", MaxSize) is equivalent to Maximize().
  • WinSize("", NormalSize) is equivalent to Restore().
Components
WINDEVReports and Queries wd230obj.dll
Windows Mobile wp230obj.dll
Java wd230java.jar
Linux wd230obj.so
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment