PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK

  • Limits
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
..XInitial is used to:
  • Find out the X coordinate:
    • of a control (position on X axis) when opening the window or the page.
    • of a window (position on X axis) when opening the window.
  • Modify the X coordinate of a control anchored "to right" (position on X axis) when opening the window.
  • Find out the X coordinate of a control in relation to its block (position in millimeters on X axis) when opening the report.
Note: The X coordinate of a control or window corresponds to the X coordinate of "Details" tab in the description window of control or window.
This X coordinate defines the control or window position when opening the window, page or report.
WEBDEV - Server code This property can only be used in the report editor.
Versions 23 and later
PHP This property is now available for the PHP sites.
WEBDEV - Browser code This property is now available in browser code.
WEBDEV - Server codeWindowsLinux This property is now available for WEBDEV sites in Linux and in Windows.
New in version 23
PHP This property is now available for the PHP sites.
WEBDEV - Browser code This property is now available in browser code.
WEBDEV - Server codeWindowsLinux This property is now available for WEBDEV sites in Linux and in Windows.
PHP This property is now available for the PHP sites.
WEBDEV - Browser code This property is now available in browser code.
WEBDEV - Server codeWindowsLinux This property is now available for WEBDEV sites in Linux and in Windows.
Example
// Moves the control 10 millimeters to right
STC_Title..X = STC_Title..X + 10
// Restores the initial position
STC_Title..X = STC_Title..XInitial
Syntax

Finding out the X coordinate of a control or window Hide the details

<Result> = <Element name>..XInitial
<Result>: Integer
  • X coordinate of specified element:
    • If the control belongs to a window: this X coordinate is expressed in pixels. It corresponds, when opening the window, to the horizontal position of top left corner of control in relation to the top left corner of client area of window (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, when opening the report, to the horizontal position of top left corner of control in relation to the top left corner of block.
    • If the control belongs to a page: this X coordinate is expressed in pixels. It corresponds, when opening the report, 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.
<Element name>: Character string (with or without quotes)
Name of element (control or window) to use.
For a control associated with a tab, use the following notation:
<Tab name>.<Control name>
Remarks

Limits

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