ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage properties / Properties associated with windows, pages and controls
  • Limits
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
The XInitial property is used to:
  • Get the X-coordinate:
    • of a control (position on the X-axis) when opening the window or the page.
    • of a window (position on X-axis) when opening the window.
  • Change the X-coordinate of a control anchored "to the right" (position on the X-axis) when opening the window.
  • Get the X-coordinate of a control in relation to its block (position in millimeters on the X-axis) when opening the report.
Remark: The abscissa of a field or window corresponds to the X coordinate of the "UI" tab in the field or window description in the editor..
This X-coordinate defines the control or window position when opening the window, page or report.
Example
// Déplace le champ de 10 millimètres vers la droite
LIB_Titre.X = LIB_Titre.X + 10
// Restaure la position initiale
LIB_Titre.X = LIB_Titre.XInitial
Syntax

Getting the X-coordinate of a control or window Hide the details

<Result> = <Element used>.XInitial
<Result>: Integer
  • X-coordinate of specified element:
    • If the field belongs to an window: this abscissa is expressed in pixels. When the window is opened, it corresponds to the horizontal position of the upper-left corner of the control, relative to the upper-left corner of the window's client area (i.e. the window without title bar, menu bar or borders).
    • If the field belongs to an state: this abscissa is expressed in millimetres. It corresponds, when opening the report, to the horizontal position of the upper-left corner of the control in relation to the upper-left corner of the block.
    • If the field belongs to a page: this abscissa is expressed in pixels. It corresponds, when opening the report, to:
      • WEBDEV - Server code the horizontal position of the upper-left corner of the control in relation to the upper-left corner of the page. If the control belongs to a container control (HTML cell, looper, etc.), the X-coordinate is given in relation to this container control.
      • WEBDEV - Browser codePHP the horizontal position of the upper-left corner of the control in relation to the upper-left corner of the page.
<Element used>: Control name or window name
Name of element (control or window) to use.
For a control associated with a tab, use the following notation:
<Nom de l'onglet>.<Nom du champ>
Remarks

Limits

WEBDEV - Server code For a report, the XInitial property only applies to the report controls.
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/24/2024

Send a report | Local help