PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK

  • Position of a tab
  • 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
..YInitial is used to:
  • Find out the Y coordinate:
    • of a control (position on Y axis) when opening the window or the page.
    • of a window (position on Y axis) when opening the window.
  • Modify the Y coordinate of a control anchored "to the bottom" (position on the vertical axis) when opening the window.
  • Find out the Y coordinate of a control in relation to its block (position in millimeters on the vertical axis) when opening the report.
Note: The initial Y coordinate of a control or window corresponds to the Y coordinate of "Details" tab in the control or window description in the editor.
This Y coordinate defines the control or window position when opening the window, page or report.
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.
Versions 23 and later
WindowsLinux This property is now available for WEBDEV sites in Linux and in Windows.
New in version 23
WindowsLinux This property is now available for WEBDEV sites in Linux and in Windows.
WindowsLinux This property is now available for WEBDEV sites in Linux and in Windows.
Example
// Moves the control 10 millimeters to bottom
STC_Caption_Title..Y = STC_Caption_Title..Y + 10
// Restores the initial position
STC_Caption_Title..Y = STC_Caption_Title..YInitial
Syntax

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

<Result> = <Element name>..YInitial
<Result>: Integer
  • Y coordinate of specified control
    • in a window, this Y coordinate is expressed in pixels. This Y coordinate corresponds, when opening the window, 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, when opening the report, 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. It corresponds, when opening the page, to:
    • Y coordinate of specified window (in pixels) when it is opened. Vertical 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>
    WINDEVUniversal Windows 10 AppJavaUser code (UMC)

    Modifying the Y coordinate of a control anchored "to bottom" Hide the details

    <Control name>..YInitial = <New Y coordinate>
    <Control name>: Character string (with or without quotes)
    Name of control to use. ..YInitial has no effect if the control is not anchored "to bottom".
    For a control associated with a tab, use the following notation:
    <Tab name>.<Control name>
    <New Y coordinate>: Integer
    New Y coordinate of specified control (in pixels).
    Vertical position of top left corner of control in relation to the top left corner of window client area (which means the window without title bar, menu bar and border).
    Remarks
    WINDEVJavaUser code (UMC)

    Position of a tab

    ..YInitial is used to find out and modify the vertical position (in pixels) of a tab 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 ..YInitial and if this tab is anchored "to bottom", all controls positioned on the tab are also moved.
    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 given in relation to the Tab control 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 given in relation to the client area of window (which means the window without title bar, menu bar and border).

    Limits

    WINDEVUniversal Windows 10 App In a report, ..YInitial only applies to the controls found in the report.
    WINDEV In a window, ..YInitial 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 in 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, ..YInitial only applies to the following elements:
    • Button.
    • Static.
    • Edit control.
    • Image.
    • Check box.
    • Radio button.
    • List box.
    • Combo box.
    • TreeView.
    • Tab.
    • Window.
    • Table.
    • Supercontrol.
    Minimum version required
    • Version 9
    This page is also available for…
    Comments
    Click [Add] to post a comment