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 in the reports
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
The X property is used to:
  • Get the X-coordinate of a control, Table control column or window (position on the X-axis).
  • Change the X-coordinate of a control or window (position on the X-axis).
This property can be used on a window or on controls in a window, page or report.
Example
// Connaître l'abscisse du champ "IMG_Image"
ResAbscisse = IMG_Image.X
Syntax

Finding out the X-coordinate of an element Hide the details

<Result> = <Element used>.X
<Result>: Integer
  • X-coordinate of specified element:
    • If the control belongs to a window, this X-coordinate is expressed in pixels. 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 control belongs to a report, this X-coordinate is expressed in millimeters. It corresponds to the horizontal position of the upper-left corner of the element in relation to the upper-left corner of te block to which the control belongs.
    • If the control belongs to a page, this X-coordinate is expressed in pixels. It corresponds to:
    • X-coordinate of specified column in a Table control (in pixels). Horizontal position of the upper-left corner of column in relation to the upper-left corner of Table control.
    <Element used>: Character string
    Name of element whose X-coordinate you want to get.
    For a control associated with a tab, use the following notation:
    <Nom de l'onglet>.<Nom du champ>

    Modifying the X-coordinate of an element Hide the details

    <Element used>.X = <New X-coordinate>
    <Element used>: Character string
    Name of element whose X-coordinate will be modified.
    For a control associated with a tab, use the following notation:
    <Nom de l'onglet>.<Nom du champ>
    <New X-coordinate>: Integer
    • New X-coordinate of the specified control:
      • If the control belongs to a window, this X-coordinate is expressed in pixels. 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 control belongs to a report, this X-coordinate is expressed in millimeters. It corresponds to the horizontal position of the upper-left corner of the element in relation to the upper-left corner of te block to which the control belongs.
      • If the control belongs to a page, this X-coordinate is expressed in pixels.
          Note: The field must be superimposable for the change in its abscissa to take effect.
      • New Xcoordinate of specified column in a Table control (in pixels). Horizontal position of the upper-left corner of column in relation to the upper-left corner of Table control.
      Remarks
      Reports and Queries

      Limits in the reports

      The X property cannot be used on:
      • a report,
      • a report block.
      Remark:
      • A control cannot be displayed outside the block to which it belongs.
      • The Height and Width properties are used to get the height and width of a report control or report block.
      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