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)
  • Width of a column in a Table control
  • Limit
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 MinWidth property gets and sets the minimum width of a control or window.
The minimum width of controls and windows is set to 0 by default. However, some controls cannot be resized below the size of their border.
Reminder The minimum width of a field or window is used for the following operations:
  • Window resized by the user.
  • Management of anchors.
  • Window resized through programming (with the Width property or the WinSize function).
Ejemplo
// Resize a column (2 pixels)
COL_Column1.MinWidth = 2
COL_Column1.Width = 2
// Modify the minimum width of a control
EDT_Edit1.MinWidth = 200
EDT_Edit1.Width = 150
// In fact, the width of control will be equal to 200
Sintaxis

Finding out the minimum width of an element Ocultar los detalles

<Current minimum width> = <Element used>.MinWidth
<Current minimum width>: Integer
Minimum width of the 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 minimum width of an element Ocultar los detalles

<Element used>.MinWidth = <New minimum width>
<Element used>: Window name or control name
Name of the element (window or control) used.
<New minimum width>: Integer
New minimum width of the 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 element 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).

Width of a column in a Table control

When the width of a column is changed in a Table control (with the Width property), if the specified width is less than the minimum width, the latter must be modified (using the MinWidth property) to reflect the change.
Java

Limit

The MinWidth 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.
  • Table column.
  • 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