PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
Y

X
Y
  • Initial position (control and window)
  • Position of Tab control
  • Position of control in a Tab control
  • Hidden button
  • Position of anchored control
  • Toolbar
  • Looper elements
  • Limits for a window and for its controls
  • Limits for the report controls
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
..Y is used to:
  • Find out the Y coordinate of a control or window (position on Y axis).
  • Modify the Y coordinate of a control or window (position on Y axis).
This property can be used on the controls found in a window, in a page or in a report, and on the windows.
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 18 and later
Universal Windows 10 App This property is now available in Windows Store apps mode.
New in version 18
Universal Windows 10 App This property is now available in Windows Store apps mode.
Universal Windows 10 App This property is now available in Windows Store apps mode.
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.
Example
// Find out the Y coordinate of "IMG_Image"
ResYCoordinate = IMG_Image..Y
Syntax

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

<Result> = <Element name>..Y
<Result>: Integer
  • Y coordinate of specified control:
    • in a window, this Y coordinate is expressed in pixels. This Y coordinate corresponds to the vertical 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).
    • in a report, this Y coordinate is expressed in millimeters. This Y coordinate corresponds to the vertical position of top left corner of control in relation to the top left corner of the block to which the control belongs.
    • in a page, this Y coordinate is expressed in pixels.
    • Y coordinate of the specified window (in pixels). Vertical position of top left corner of window in relation to the top left corner of the screen.
      Linux The Y coordinate of window is not available.
    <Element name>: Character string (with or without quotes)
    Name of element (control, page or window) to use.
    For a control associated with a tab, use the following notation:
    <Tab name>.<Control name>

    Modifying the Y coordinate of a control or window Hide the details

    <Element name>..Y = <New Y coordinate>
    <Element name>: Character string (with or without quotes)
    Name of element whose Y coordinate will be modified.
    For a control associated with a tab, use the following notation:
    <Tab name>.<Control name>
    <New Y coordinate>: Integer
    • New Y coordinate for the specified control:
      • in a window, this Y coordinate is expressed in pixels. This Y coordinate corresponds to the vertical 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).
      • in a report, this Y coordinate is expressed in millimeters. This Y coordinate corresponds to the vertical position of top left corner of control in relation to the top left corner of the block to which the control belongs.
      • in a page, this Y coordinate is expressed in pixels.
          Note: The control must be a stackable control otherwise the modification of the Y coordinate will be ignored.
      • New Y coordinate for the specified window (in pixels). Vertical position of top left corner of window in relation to the top left corner of the screen.
        Linux The Y coordinate of window cannot be modified.
      Remarks
      WINDEVUniversal Windows 10 AppJavaUser code (UMC)

      Initial position (control and window)

      The initial position (defined in the "Details" tab of object description in the window editor) is returned by ..XInitial and ..YInitial. This position corresponds to the object position when opening the window and it can be modified by programming with ..X and ..Y.
      WINDEVJavaUser code (UMC)

      Position of Tab control

      ..Y is used to find out and modify the vertical 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 tab coordinates are modified by ..Y, all controls positioned on the tab are moved accordingly.
      WINDEVJavaUser code (UMC)

      Position of control in a Tab control

      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).
      Further to a modification, if the coordinates of a control positioned on a tab do no longer belong to the coordinates of this tab, this control is not displayed anymore.
      WINDEVUniversal Windows 10 AppJavaUser code (UMC)

      Hidden button

      You have the ability to use a "hidden" button by specifying negative coordinates (with ..Y and ..X). These negative coordinates can be used to define specific shortcuts for example. A specific process can be called from a button with negative coordinates so that it is not displayed in the window.
      WINDEVUniversal Windows 10 AppJavaUser code (UMC)

      Position of anchored control

      ..Y is used to temporarily modify the Y coordinate of an anchored control (until the window is resized).
      To permanently modify the position of an anchored control, use ..XInitial and ..YInitial.
      WINDEVUser code (UMC)

      Toolbar

      ..Y can be used on a floating toolbar.
      Versions 22 and later
      WINDEVUniversal Windows 10 AppUser code (UMC)

      Looper elements

      ..Y can be used on the elements found in a Looper control. In this case, ..Y is used to find out the coordinates of the row inside the visible looper area.
      If the element is not displayed in the visible looper area, ..Y will return -4000.
      Example:
      LooperDisplay(LOOP_NoName1, 10)
      ThreadPause(200)
      Info("..Y of element 10: " + LOOP_NoName1[10]..Y)
      New in version 22
      WINDEVUniversal Windows 10 AppUser code (UMC)

      Looper elements

      ..Y can be used on the elements found in a Looper control. In this case, ..Y is used to find out the coordinates of the row inside the visible looper area.
      If the element is not displayed in the visible looper area, ..Y will return -4000.
      Example:
      LooperDisplay(LOOP_NoName1, 10)
      ThreadPause(200)
      Info("..Y of element 10: " + LOOP_NoName1[10]..Y)
      WINDEVUniversal Windows 10 AppUser code (UMC)

      Looper elements

      ..Y can be used on the elements found in a Looper control. In this case, ..Y is used to find out the coordinates of the row inside the visible looper area.
      If the element is not displayed in the visible looper area, ..Y will return -4000.
      Example:
      LooperDisplay(LOOP_NoName1, 10)
      ThreadPause(200)
      Info("..Y of element 10: " + LOOP_NoName1[10]..Y)
      WINDEVJavaUser code (UMC)

      Limits for a window and for its controls

      WINDEV In the windows, ..Y 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 group of controls,
      • a window menu,
      • an element in a TreeView control.
      WINDEV 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, ..Y only applies to the following elements:
      • Button.
      • Static.
      • Edit control.
      • Image.
      • Check box.
      • Radio button.
      • List box.
      • Combo box.
      • TreeView.
      • Tab.
      • Window.
      • Table.
      • Supercontrol.
      WINDEVUniversal Windows 10 App

      Limits for the report controls

      ..Y cannot be used on:
      • a report,
      • a report block.
      Notes
      • 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.
      Minimum required version
      • Version 9
      This page is also available for…
      Comments
      Click [Add] to post a comment