1
1
Fork 0
mirror of https://github.com/QB64Official/qb64.git synced 2024-07-01 09:10:37 +00:00
qb64/internal/help/_SCREENX.txt
2019-04-14 22:15:33 -03:00

32 lines
971 B
Plaintext

{{DISPLAYTITLE:_SCREENX}}
The [[_SCREENX]] function returns the current column pixel coordinate of the program window on the desktop.
{{PageSyntax}}
: {{Parameter|positionX&}} = [[_SCREENX]]
{{PageDescription}}
* Function returns the current program window's upper left corner column position on the desktop.
* Use [[_DESKTOPWIDTH]] and [[_DESKTOPHEIGHT]] to find the current 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:
{{CodeStart}}{{Cl|_SCREENMOVE}} {{Cl|_SCREENMOVE|_MIDDLE}}
{{Cl|_SCREENCLICK}} {{Cl|_SCREENX}} + 10, {{Cl|_SCREENY}} + 10
{{Cl|PRINT}} "Hello window!"
{{CodeEnd}}
{{PageSeeAlso}}
* [[_SCREENY]]
* [[_SCREENIMAGE]]
* [[_SCREENCLICK]]
* [[_SCREENPRINT]]
* [[_SCREENMOVE]]
{{PageNavigation}}