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.
  • Initial position (control and window)
  • Position of Tab control
  • Position of control in a Tab control
  • Hidden button
  • Position of anchored control
  • Elements of a Looper control
  • 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
The Property Y makes it possible 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 15 and later
Android This property is now available for Android applications.
New in version 15
Android This property is now available for Android applications.
Android This property is now available for Android applications.
Versions 17 and later
iPhone/iPad This property is now available for iPhone/iPad applications.
New in version 17
iPhone/iPad This property is now available for iPhone/iPad applications.
iPhone/iPad This property is now available for 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 report controls in 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 report controls in 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 report controls in iPhone/iPad applications.
Versions 20 and later
AndroidiPhone/iPad This property is now available for Table controls in Android and iPhone/iPad applications.
New in version 20
AndroidiPhone/iPad This property is now available for Table controls in Android and iPhone/iPad applications.
AndroidiPhone/iPad This property is now available for Table controls in Android and iPhone/iPad applications.
Versions 21 and later
Apple Watch This property is now available in Apple Watch mode.
Universal Windows 10 App This property is now available in Universal Windows 10 App mode.
New in version 21
Apple Watch This property is now available in Apple Watch mode.
Universal Windows 10 App This property is now available in Universal Windows 10 App mode.
Apple Watch This property is now available in Apple Watch 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 used>.Y
<Result>: Integer
  • Y coordinate of specified control:
    • in a window, this Y coordinate is expressed in pixels. This Y-coordinate corresponds the vertical 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).
    • 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.
    <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>

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

    <Element used>.Y = <New Y coordinate>
    <Element used>: Control name or window name
    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 the vertical 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).
      • 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.
          Remark: 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.
      Remarks
      AndroidiPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile

      Initial position (control and window)

      The initial position (defined in the "Details" tab of the object description in the window editor) is returned by XInitial and YInitial. This position corresponds to the position of the object when the window is opened and can be modified by programming with the properties X and Y.
      Windows Mobile

      Position of Tab control

      The Property Y allows you to know and modify the vertical 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 the tab are modified with the Property Y, all the fields positioned on the tab are also moved.
      Windows Mobile

      Position of control in a Tab control

      If a control is associated with a tab, its coordinates are not relative to the tab but to the window's client area (i.e. the window without title bar, menu bar or borders).
      If, after a modification, the coordinates of a control positioned on a tab no longer belong to the coordinates of this tab, the control is not displayed anymore.
      AndroidiPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile

      Hidden button

      It is possible to use a "hidden" button by using negative coordinates (with the properties 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.
      AndroidiPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile

      Position of anchored control

      If a field is anchored, the Property Y allows you to temporarily change its ordinate (until the next change in window size).
      To permanently modify the position of an anchored control, use XInitial and YInitial.
      Versions 22 and later
      iPhone/iPadUniversal Windows 10 App

      Elements of a Looper control

      The Property Y can be used on the elements of an Looper control. In this case, the Y property allows to know the coordinates of the repetition within the visible area of the Looper control.
      If the element is not displayed in the visible part of the Looper control then the Y property will return -4000.
      Example:
      LooperDisplay(LOOP_NoName1, 10)
      ThreadPause(200)
      Info(".Y of element 10: " + ZR_SansNom1[10].Y)
      New in version 22
      iPhone/iPadUniversal Windows 10 App

      Elements of a Looper control

      The Property Y can be used on the elements of an Looper control. In this case, the Y property allows to know the coordinates of the repetition within the visible area of the Looper control.
      If the element is not displayed in the visible part of the Looper control then the Y property will return -4000.
      Example:
      LooperDisplay(LOOP_NoName1, 10)
      ThreadPause(200)
      Info(".Y of element 10: " + ZR_SansNom1[10].Y)
      iPhone/iPadUniversal Windows 10 App

      Elements of a Looper control

      The Property Y can be used on the elements of an Looper control. In this case, the Y property allows to know the coordinates of the repetition within the visible area of the Looper control.
      If the element is not displayed in the visible part of the Looper control then the Y property will return -4000.
      Example:
      LooperDisplay(LOOP_NoName1, 10)
      ThreadPause(200)
      Info(".Y of element 10: " + ZR_SansNom1[10].Y)
      Windows Mobile

      Limits for a window and for its controls

      WINDEV Mobile In windows, the Property 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.
      iPhone/iPadUniversal Windows 10 AppWindows Mobile

      Limits for the report controls

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