- Initial position (control and window)
- Position of Tab control
- Position of a control associated with a Tab control
- Hidden button
- Position of anchored control
- Toolbar
- Looper elements
- Limits for the windows and window controls
- Limits in the reports
- Limits in the pages
X (Property) In french: X
// Find out the X coordinate of "IMG_Image" control ResX = 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 top left corner of element in relation to the top 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:
the horizontal position of top left corner of control in relation to the top left corner of the page. If the control belongs to a container control (HTML cell, looper, ...), the X coordinate is given in relation to this container control.  the horizontal position of top left corner of control in relation to the top left corner of the page.
- X coordinate of specified column in a Table control (in pixels). Horizontal position of top left corner of column in relation to the top left corner of Table control.
 X coordinate of window (in pixels). Horizontal position of top left corner of window in relation to the top left corner of the screen.
The X coordinate of window is not available.
<Element used>: Character string (with or without quotes) Name of element whose X coordinate is requested. For a control associated with a tab, use the following notation:
<Tab name>.<Control name>
Modifying the X coordinate of an element Hide the details
<Element used>..X = <New X coordinate>
<Element used>: Character string (with or without quotes) Name of element whose X coordinate will be modified. For a control associated with a tab, use the following notation:
<Tab name>.<Control name>
<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 top left corner of element in relation to the top left corner of te block to which the control belongs.
- If the control belongs to a page, this X coordinate is expressed in pixels.
the horizontal position of top left corner of control in relation to the top left corner of the page. If the control belongs to a container control (HTML cell, looper, ...), the X coordinate is given in relation to this container control.  the horizontal position of top left corner of control in relation to the top left corner of the page. Remark: The control must be a stackable control otherwise the modification of the X coordinate will be ignored.
- New X coordinate of specified column in a Table control (in pixels). Horizontal position of top left corner of column in relation to the top left corner of Table control.
 New X coordinate for the specified window (in pixels). Horizontal position of top left corner of window in relation to the top left corner of the screen.
The X coordinate of the window cannot be modified.
Remarks Versions 22 and later New in version 22
This page is also available for…
|
|
|