PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN

This content has been translated automatically. Click here to view the French version.
  • Position of Tab control
  • Position of control in a Tab control
  • 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.
Remark: The X coordinate of a control or window corresponds to the X coordinate specified in the "UI" tab, in their description window.
This X coordinate defines the control or window position when opening the window, page or report.
Versions 23 and later
PHP This property is now available for PHP sites.
Windows This property is now available for WEBDEV sites in Linux and in Windows.
New in version 23
PHP This property is now available for PHP sites.
Windows This property is now available for WEBDEV sites in Linux and in Windows.
PHP This property is now available for PHP sites.
Windows 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 used>.XInitial
<Result>: Integer
  • X coordinate of specified element:
    • If the control belongs to a window: this X-coordinate is expressed in pixels. When the window is opened, 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, 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:
      • PHP the horizontal position of top left corner of control in relation to the top left corner of the page.
<Element used>: Control name or window name
Name of element (control or window) to use.
For a control associated with a tab, use the following notation:
<Tab name>.<Control name>
JavaUser code (UMC)

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

<Control used>.XInitial = <New X coordinate>
<Control used>: Control name
Name of control to use. If this field is not anchored "right", the Property XInitial has no effect..
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 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).
Remarks
JavaUser code (UMC)

Position of Tab control

The Property XInitial allows you to know and modify the horizontal position (in pixels) of the Tab control in relation to the top left corner of the client area of the window (i.e. the window without the title and menu bars nor the Border).
Important: If the coordinates of a tab anchored "on the right" are modified with the Property XInitial, all the fields positioned on the tab are also moved.
JavaUser code (UMC)

Position of control in a Tab control

  • If a control is associated with a Tab control, its coordinates are not relative to the Tab control but to the window's client area (i.e. the window without title bar, menu bar or borders).
  • If a control is positioned on a Tab control without being associated with it, the coordinates of this control are relative to the window's client area (i.e. the window without title bar, menu bar or borders).

Limits

Reports and Queries For reports, the Property XInitial applies only to ' fields of an report.
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment