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
  • Modifying the writing direction in a window
  • Modifying the writing direction in a control
  • Required configuration
  • Actual writing direction
  • 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 TextDirection property is used to determine and change the writing direction in a window, report or control (useful for languages such as Arabic or Hebrew).
Note: The writing direction of a language can be defined directly in the project's language options:
  • On the "Proyecto" tab, in the "Proyecto" group, click "Descripción".
  • On the "Languages" tab, select the "Miscellaneous" language options and configure the "Text direction".
iPhone/iPadIOS Widget Please note: This property is only available in states.
Ejemplo
// Changement du sens d'écriture pour tous les champs de la fenêtre
IF FEN_Saisie.SensEcriture = tdDefault THEN
FEN_Saisie.SensEcriture = tdRightToLeft
END
Sintaxis

Finding out the writing direction currently used in a window, report or control Ocultar los detalles

<Result> = <Element used>.TextDirection
<Result>: Integer constant
Writing direction currently used. This constant can correspond to one of the following values:
tdDefaultDefault text direction (text direction defined for the current language in the characteristics of the project).
tdLeftToRightText written from left to right.
tdRightToLeftText written from right to left.
<Element used>: Name of control, window or report
Name of the element (window, report or control) for which the writing direction is requested.

Modifying the writing direction used in a window, report or control Ocultar los detalles

<Element used>.TextDirection = <New direction>
<Element used>: Name of control, window or report
Name of the element (window, report or control) for which the writing direction must be modified.
<New direction>: Integer constant
New writing direction. This constant can correspond to one of the following values:
tdDefaultDefault text direction (text direction defined for the current language in the characteristics of the project).
tdLeftToRightText written from left to right.
tdRightToLeftText written from right to left.
Observaciones

Modifying the writing direction in a window

When the writing direction is reversed in a window (tdRightToLeft constant):
  • The marker of the window is modified. The window origin (0, 0) changes from the upper-left corner to the upper-right corner. The X-axis is oriented to the left. The anchor of controls is modified accordingly.
  • The controls are displayed in "mirror".
  • All fields defined with the constant seDefault change to seRightLeft: field labels are positioned on the right-hand side of the field, scrollbars appear on the left-hand side of the field, ...

Modifying the writing direction in a control

When the writing direction on a field is Reverse (constant seDroiteAGauche), only the display mode of the field concerned is modified: field labels are positioned on the right-hand side of the field, scrollbars appear on the left-hand side of the field, ...

Required configuration

The languages written from right to left are supported by the Windows versions later than Windows 95 and NT4.
To enable this option:
  1. Display the control panel ("Start .. Control panel").
  2. Select "Regional and language options".
  3. On the "Languages" tab, select "Install the files for the languages with right-to-left complex script".
  4. Validate.

Actual writing direction

If the writing direction corresponds to the tdDefault constant, use the RightToLeft property to determine the "actual" writing direction. This property returns True if the actual writing direction goes from right to left and False if the actual writing direction goes from left to right.

Limits

In the reports, this property is available for the following elements:
  • Report.
  • Static Text control.
  • Calculated control.
  • RTF control.
  • Preset control.
  • Link control.
  • Edit control.
  • Chart control.
iPhone/iPad This property is available for reports only.
Versión mínima requerida
  • Versión 15
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 21/09/2024

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