PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

X
Y
  • Position of Tab control
  • Position of control in a tab
  • 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 16 and later
Universal Windows 10 App This property is now available for the Windows Phone applications.
New in version 16
Universal Windows 10 App This property is now available for the Windows Phone applications.
Universal Windows 10 App This property is now available for the Windows Phone applications.
Versions 15 and later
Android This property is now available for the Android applications.
New in version 15
Android This property is now available for the Android applications.
Android This property is now available for the Android applications.
Versions 17 and later
iPhone/iPad This property is now available for the iPhone/iPad applications.
New in version 17
iPhone/iPad This property is now available for the iPhone/iPad applications.
iPhone/iPad This property is now available for the iPhone/iPad applications.
Versions 18 and later
Universal Windows 10 App This property is now available in Windows Store Apps mode.
iPhone/iPad This property is now available for the report controls in the iPhone/iPad applications.
New in version 18
Universal Windows 10 App This property is now available in Windows Store Apps mode.
iPhone/iPad This property is now available for the report controls in the iPhone/iPad applications.
Universal Windows 10 App This property is now available in Windows Store Apps mode.
iPhone/iPad This property is now available for the report controls in the iPhone/iPad applications.
Versions 20 and later
AndroidiPhone/iPad This property is now available for the Table controls in the Android applications and in the iPhone/iPad applications.
New in version 20
AndroidiPhone/iPad This property is now available for the Table controls in the Android applications and in the iPhone/iPad applications.
AndroidiPhone/iPad This property is now available for the Table controls in the Android applications and in the iPhone/iPad applications.
Versions 21 and later
Universal Windows 10 App This property is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This property is now available in Universal Windows 10 App mode.
Universal Windows 10 App This property is now available in Universal Windows 10 App mode.
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.
  • WINDEVAndroidiPhone/iPadWindows MobileUniversal Windows 10 App X coordinate of window (in pixels) when it is opened. Horizontal position of top left corner of window in relation to the top left corner of the screen.
<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>
WINDEVAndroidiPhone/iPadWindows MobileUniversal Windows 10 AppJavaUser code (UMC)

Modifying the X coordinate of a control anchored "to right" Hide the details

<Control Name>..XInitial = <New X Coordinate>
<Control Name>: Character string (with or without quotes)
Name of control to use. ..XInitial has no effect if the control is not anchored "to right".
For a control associated with a tab, use the following notation:
<Tab Name>.<Control Name>
<New X Coordinate>: Integer
New X coordinate of specified control (in pixels). 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).
Remarks
WINDEVWindows MobileJavaUser code (UMC)

Position of Tab control

..XInitial is used to find out and modify the horizontal position (in pixels) of Tab control in relation to the top left corner of client area of window (which means the window without title bar, menu bar and border).
Important: If the coordinates of a tab anchored "to right" are modified by ..XInitial, all controls positioned on the tab will also be moved.
WINDEVWindows MobileJavaUser code (UMC)

Position of control in a tab

  • If a control is associated with a tab, the coordinates of this control are not specified in relation to the tab but in relation to the client area of window (which means the window without title bar, menu bar and border).
  • If a control is positioned on a tab without being associated with this tab, the coordinates of this control are specified in relation to the client area of window (which means the window without title bar, menu bar and border).

Limits

WINDEVWEBDEV - Server codeReports and QueriesiPhone/iPadWindows MobileUniversal Windows 10 App For the reports, ..XInitial only applies to the controls found in a report.
WINDEVWINDEV Mobile ..XInitial cannot be used on:
  • an option in a check box or radio button,
  • a row in a list box, in a combo box or in a table,
  • a table cell,
  • a group of controls,
  • a window menu,
  • an element of a TreeView control.
WINDEV Limits for the controls and windows
In Windows 98, the size of elements is limited to ± 32 767. In Windows NT/2000, it is possible (but not recommended) to specify a size up to ± 2 147 483 647.
Java In Java, ..XInitial only applies to the following elements:
  • Button.
  • Static control.
  • Edit control.
  • Image.
  • Check box.
  • Radio button.
  • List box.
  • Combo box.
  • TreeView.
  • Tab.
  • Window.
  • Table.
  • Supercontrol.
WEBDEV - Server codeWEBDEV - Browser codePHP Limits in the pages
..XInitial 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 required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment