PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK

  • Initial width (control and window)
  • Limit
  • Limits
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
..MaxWidth is used to find out and modify the maximum width of a control or window.
By default, the maximum width:
  • of a control is equal to 2 147 483 647 (0x7FFFFFFF). This value is equivalent to "no maximum size limit".
  • of a window is equal to 20 000. However, the size of windows should not exceed the size of the screen.
Reminder: The maximum width of a control or window is used during the following operations:
  • Window resized by the user.
  • Management of anchors.
The maximum width of a control or window is not used when the window is resized by programming (..Width or WinSize).
Versions 18 and later
Universal Windows 10 App This property is now available in Windows Store apps mode.
New in version 18
Universal Windows 10 App This property is now available in Windows Store apps mode.
Universal Windows 10 App This property is now available in Windows Store apps mode.
Versions 21 and later
Universal Windows 10 App This property is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This property is now available in Universal Windows 10 App mode.
Universal Windows 10 App This property is now available in Universal Windows 10 App mode.
Example
// Modify the maximum width of a control
EDT_Edit1..MaxWidth = 200
Syntax

Finding out the maximum width of an element Hide the details

<Current Maximum Width> = <Element Name>..MaxWidth
<Current Maximum Width>: Integer
Maximum width of specified element (including the border) expressed in pixels.
<Element Name>: Character string (with or without quotes)
Name of element (window or control) whose maximum width will be calculated.

Modifying the maximum width of an element Hide the details

<Element Name>..MaxWidth = <New Maximum Width>
<Element Name>: Character string (with or without quotes)
Name of element (window or control) whose maximum width will be modified.
<New Maximum Width>: Integer
New maximum width of element (including the border) expressed in pixels.
Remarks

Initial width (control and window)

The initial width (defined in the editor) is returned by ..InitialWidth.
In most cases, the object width depends on ..MaxWidth and ..MinWidth. However, this constraint disappears when the width is modified by programming (..Width or WinSize).
WINDEVJava

Limit

In Windows 98, the size of elements is limited to ± 32 767. In Windows NT/2000, it is possible (but not recommended) to specify a size up to ± 2 147 483 647.
Java

Limits

..MaxWidth only applies to the following elements:
  • Button.
  • Static control.
  • Edit control.
  • Image.
  • Check box.
  • Radio button.
  • List box.
  • Combo box.
  • TreeView.
  • Tab.
  • Table.
  • Supercontrol.
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment