AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Propiedades WLanguage / Propiedades de ventanas, páginas y controles
  • Initial width (control and window)
  • Limits
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
The MaxWidth property gets and sets 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 field or window is used for 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 through programming (with the Width property or WinSize function).
Ejemplo
// Modify the maximum width of a control
EDT_Edit1.MaxWidth = 200
Sintaxis

Finding out the maximum width of an element Ocultar los detalles

<Current maximum width> = <Element used>.MaxWidth
<Current maximum width>: Integer
Maximum width of specified element (including the border) expressed in pixels.
<Element used>: Window name or control name
Name of the element (window or control) used.

Modifying the maximum width of an element Ocultar los detalles

<Element used>.MaxWidth = <New maximum width>
<Element used>: Window name or control name
Name of the element (window or control) used.
<New maximum width>: Integer
New maximum width of element (including the border) expressed in pixels.
Observaciones

Initial width (control and window)

The initial width (defined in the editor) is returned by the InitialWidth property.
In most cases, the width of an object depends on the MaxWidth and MinWidth properties. However, this constraint no longer applies when the width is changed through programming (with the Width property or the WinSize function).
Java

Limits

The MaxWidth property can only be used with the following elements:
  • Button.
  • Wording.
  • Edit control.
  • Image.
  • Check Box.
  • Radio Button.
  • List Box.
  • Combo Box.
  • TreeView.
  • Tab.
  • Table.
  • Supercontrol.
Versión mínima requerida
  • Versión 9
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 10/05/2025

Señalar un error o enviar una sugerencia | Ayuda local