PC SOFT

AYUDA EN LÍNEA
DE WINDEV, WEBDEV Y WINDEV MOBILE


  • Anchoring
  • Limits
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Otros
Procedimientos almacenados
Anchor (Property)
 
..Anchor is used to manage the anchor of a control. You can:
  • Find out the current anchor of a control in a window.Find out the current anchor of a control in a window or report.
  • Modify the characteristics of the anchor applied to a control in a window.
Reminder: The anchor of a control is used to define the control behavior (size and location) when resizing the window (or report).
Several properties are used to define or find out the anchor rate of a control. These properties are as follows:
Versiones 15 y posteriores
Android This property is now available for the Android applications.
Nueva funcionalidad versión 15
Android This property is now available for the Android applications.
Android This property is now available for the Android applications.
Versiones 16 y posteriores
Universal Windows 10 App This property is now available for the Windows Phone applications.
WINDEVLinux This property is now available for the WINDEV applications in Linux.
Nueva funcionalidad versión 16
Universal Windows 10 App This property is now available for the Windows Phone applications.
WINDEVLinux This property is now available for the WINDEV applications in Linux.
Universal Windows 10 App This property is now available for the Windows Phone applications.
WINDEVLinux This property is now available for the WINDEV applications in Linux.
Versiones 17 y posteriores
iPhone/iPad This property is now available for the iPhone/iPad applications.
Nueva funcionalidad versión 17
iPhone/iPad This property is now available for the iPhone/iPad applications.
iPhone/iPad This property is now available for the iPhone/iPad applications.
Versiones 18 y posteriores
Universal Windows 10 App This property is now available in Windows Store Apps mode.
Nueva funcionalidad versión 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.
Versiones 19 y posteriores
WINDEVWEBDEV - Código ServidorReportes y ConsultasiPhone/iPadWindows Mobile This property is now available for the report controls.
WEBDEV - Código Servidor This property is available for the report controls only.
Nueva funcionalidad versión 19
WINDEVWEBDEV - Código ServidorReportes y ConsultasiPhone/iPadWindows Mobile This property is now available for the report controls.
WEBDEV - Código Servidor This property is available for the report controls only.
WINDEVWEBDEV - Código ServidorReportes y ConsultasiPhone/iPadWindows Mobile This property is now available for the report controls.
WEBDEV - Código Servidor This property is available for the report controls only.
Versiones 20 y posteriores
AndroidiPhone/iPad This property is now available for the Table controls and for the table columns in the Android applications and in the iPhone/iPad applications.
Nueva funcionalidad versión 20
AndroidiPhone/iPad This property is now available for the Table controls and for the table columns in the Android applications and in the iPhone/iPad applications.
AndroidiPhone/iPad This property is now available for the Table controls and for the table columns in the Android applications and in the iPhone/iPad applications.
Versiones 21 y posteriores
Universal Windows 10 App This property is now available in Universal Windows 10 App mode.
Nueva funcionalidad versión 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.
Ejemplo
// Define the anchor characteristics
// The control will be resized in height and width
LIST_List1..Anchor = anchorWidth + anchorHeight
Sintaxis

Finding out the anchor of a control Ocultar los detalles

<Current Anchor> = <Control Name>..Anchor
<Current Anchor>: Integer constant
Characteristics of anchor currently defined for the control.
anchorBottomThe control moves to the bottom
anchorRightThe control moves to the right
anchorHeightThe control stretches to the bottom
anchorTopLeftNo action
anchorWidthThe control stretches to the right

anchorRight and anchorWidth can be associated with anchorBottom and anchorHeight.
<Control Name>: Character string (with or without quotes)
Name of control used (window or report control).
WINDEViPhone/iPadWindows MobileUniversal Windows 10 AppJava

Modifying the anchor of a control Ocultar los detalles

<Control Name>..Anchor = <New Anchor>
<Control Name>: Character string (with or without quotes)
Name of control used (window or report control).
<New Anchor>: Integer constant
Characteristics of anchor currently defined for the control.
anchorBottomThe control moves to the bottom
anchorRightThe control moves to the right
anchorHeightThe control stretches to the bottom
anchorTopLeftNo action
anchorWidthThe control stretches to the right

anchorRight and anchorWidth can be associated with anchorBottom and anchorHeight.
Observaciones

Anchoring

Reminder: the anchor of a control is used to define the control behavior (size and location) when resizing the window or report.
The positions and widths used to calculate the new sizes and positions are the ones defined in the editor. They can be returned by ..XInitial, ..YInitial, ..InitialWidth and ..InitialHeight.
WINDEVAndroidiPhone/iPadWindows MobileUniversal Windows 10 AppJava Notes:
  • ..Anchor is not available for a column found in a Table or TreeView Table control. The anchor of a column is specified by ..AnchorRateWidth directly.
  • If the control is associated with a tab pane, the anchor is defined in relation to the Tab control.

Limits

WINDEVAndroidiPhone/iPadWindows MobileUniversal Windows 10 AppJava ..Anchor applies to all the window controls.
Versiones 19 y posteriores
WINDEVWEBDEV - Código ServidorReportes y ConsultasiPhone/iPadWindows MobileUniversal Windows 10 App ..Anchor applies to all the report controls. In this case, you can only find out the type of anchoring used.
Nueva funcionalidad versión 19
WINDEVWEBDEV - Código ServidorReportes y ConsultasiPhone/iPadWindows MobileUniversal Windows 10 App ..Anchor applies to all the report controls. In this case, you can only find out the type of anchoring used.
WINDEVWEBDEV - Código ServidorReportes y ConsultasiPhone/iPadWindows MobileUniversal Windows 10 App ..Anchor applies to all the report controls. In this case, you can only find out the type of anchoring used.
Java ..Anchor applies to the following controls:
  • Button control.
  • Static control.
  • Edit control.
  • Image control.
  • Check Box control.
  • Radio Button control.
  • List Box control.
  • Combo Box control.
  • TreeView control.
  • Tab control.
  • Table control.
  • 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