Difference between revisions of "SCREENY"

From QB64 Wiki
Jump to navigation Jump to search
imported>Clippy
m
imported>SMcNeill
(-)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{DISPLAYTITLE:_SCREENY}}
{{DISPLAYTITLE:_SCREENY}}
The '''_SCREENY''' function returns the current row pixel coordinate of the program window on the desktop.
The [[_SCREENY]] function returns the current row pixel coordinate of the program window on the desktop.




{{PageSyntax}}
{{PageSyntax}}
:: positionY& = [[_SCREENY]]
: {{Parameter|positionY&}} = [[_SCREENY]]




{{PageDescription}}
* Function returns the current program window's upper left corner row position on the desktop.
* Function returns the current program window's upper left corner row position on the desktop.
* Use [[_SCREENIMAGE]] to find the current user's Windows desktop resolution to adjust the position with [[_SCREENMOVE]].
* Use [[_DESKTOPWIDTH]] and [[_DESKTOPHEIGHT]] to find the current user's Windows desktop resolution to adjust the position with [[_SCREENMOVE]].
* [[Keywords_currently_not_supported_by_QB64#Keywords_Not_Supported_in_Linux_or_MAC_OSX_versions|Keyword not Supported in Linux or MAC versions]]




{{PageExamples}}
''Example:'' Clicks and opens program window header menu:
''Example:'' Clicks and opens program window header menu:
{{CodeStart}}{{Cl|_SCREENMOVE}} {{Cl|_SCREENMOVE|_MIDDLE}}
{{CodeStart}}{{Cl|_SCREENMOVE}} {{Cl|_SCREENMOVE|_MIDDLE}}
{{Cl|_SCREENCLICK}} {{Cl|_SCREENX}} + 10, {{Cl|_SCREENY}} + 10
{{Cl|_SCREENCLICK}} {{Cl|_SCREENX}} + 10, {{Cl|_SCREENY}} + 10
 
{{Cl|PRINT}} "Hello window!" '' ''
{{Cl|PRINT}} "Hello window!"
{{Cl|_SCREENPRINT}} {{Cl|CHR$}}(1) '' ''
{{CodeEnd}}
{{CodeEnd}}




''See also:''
{{PageSeeAlso}}
* [[_SCREENX]]
* [[_SCREENIMAGE]]
* [[_SCREENIMAGE]]
* [[_SCREENCLICK]]
* [[_SCREENCLICK]]
* [[_SCREENPRINT]]
* [[_SCREENPRINT]]
* [[_SCREENMOVE]]
* [[_SCREENMOVE]]
* [[_SCREENY]]




{{PageNavigation}}
{{PageNavigation}}

Latest revision as of 11:41, 16 October 2017

The _SCREENY function returns the current row pixel coordinate of the program window on the desktop.


Syntax

positionY& = _SCREENY


Description


Examples

Example: Clicks and opens program window header menu:

_SCREENMOVE _MIDDLE _SCREENCLICK _SCREENX + 10, _SCREENY + 10 PRINT "Hello window!"


See also



Navigation:
Keyword Reference - Alphabetical
Keyword Reference - By Usage
Main Wiki Page