PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK

  • Limits in the reports
  • Limits in the pages
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
..X is used to:
  • Find out the X coordinate of a control, of a Table control column or of a window (position on X axis).
    WEBDEV - Server codeWEBDEV - Browser codePHP This property is used to find out the X coordinate of a control in a page.
  • Modify the X coordinate of a control or window (position on X axis).
    WEBDEV - Server codeWEBDEV - Browser codePHP This property is used to modify the X coordinate of a stackable control in a page.
This property can be used on the controls found in a window, in a page, in a report, or on a window.
Versions 16 and later
PHP This property is now available for the PHP sites.
New in version 16
PHP This property is now available for the PHP sites.
PHP This property is now available for the PHP sites.
Example
// 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 name>..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 top left corner of control in relation to the top left corner of window client area (which means the window without title bar, menu bar and border).
    • 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:
      • WEBDEV - Server code 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.
      • WEBDEV - Browser codePHP 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.
<Element name>: 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 name>..X = <New X coordinate>
<Element name>: 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>
WEBDEV - Server codeWEBDEV - Browser code To modify the X coordinate of a page control, this control must be a stackable control.
<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 top left corner of control in relation to the top left corner of window client area (which means the window without title bar, menu bar and border).
    • 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.
      • WEBDEV - Server code 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.
      • WEBDEV - Browser codePHP the horizontal position of top left corner of control in relation to the top left corner of the page.
      Note: 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.
Remarks
WEBDEV - Server code

Limits in the reports

..X cannot be used on:
  • a report,
  • a report block.
Note:
  • A control cannot be displayed outside the block to which it belongs.
  • ..Height and ..Width are used to find out the height and width of a report control or report block.
WEBDEV - Server codeWEBDEV - Browser codePHP

Limits in the pages

..X can only be used on the controls actually displayed in the browser. It cannot be used on:
  • an HTML table,
  • an option in a Check Box or Radio Button control,
  • a row in a List Box control, Combo Box control or Table control,
  • a cell in a Table control,
  • a group of controls.
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment