DesktopWindow.Top

From Xojo Documentation

Property (As Integer )
aDesktopWindow.Top = newIntegerValue
or
IntegerValue = aDesktopWindow.Top

New in 2021r3

Supported for all project types and targets.

The distance (in pixels) between the top edge of the screen and the top edge of the content region of the window.

Notes

The Top value refers to the topmost part of the window content region, which is the area starting below the Window Title Bar.

Setting Top = 0 moves the top of the windows content area to the top of the screen. On macOS, this puts the window behind the main menu bar that appears at the top of the screen. To position a window directly below the main menu bar, you should use DesktopDisplay.AvailableTop to get the topmost position after the menu bar and then use DesktopWindow.Bounds to position the window.

See Also

DesktopWindow.Bounds