1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-07-01 15:00:38 +00:00
QB64-PE/internal/help/_DESKTOPWIDTH.txt

39 lines
866 B
Plaintext
Raw Normal View History

2016-03-18 11:36:04 +00:00
{{DISPLAYTITLE:_DESKTOPWIDTH}}
2017-10-10 14:55:21 +00:00
The [[_DESKTOPWIDTH]] function returns the width of the users current desktop.
2016-03-18 11:36:04 +00:00
{{PageSyntax}}
2017-10-10 14:55:21 +00:00
: {{Parameter|x&}} = [[_DESKTOPWIDTH]]
2016-03-18 11:36:04 +00:00
{{PageDescription}}
* No parameters are needed for this function.
* This returns the width of the user's desktop, not the size of any screen or window which might be open on that desktop.
==Availability==
* '''Version 1.000 and up.'''
2016-03-18 11:36:04 +00:00
2017-10-10 14:55:21 +00:00
{{PageExamples}}
2016-03-18 11:36:04 +00:00
{{CodeStart}}
s& = {{Cl|_NEWIMAGE}}(800, 600, 256)
SCREEN s&
PRINT _DESKTOPWIDTH, _DESKTOPHEIGHT
PRINT _WIDTH, _HEIGHT
{{CodeEnd}}
2017-10-10 14:55:21 +00:00
: ''Explanation:'' This will print the size of the user desktop (for example ''1920, 1080'' for a standard hdmi monitor), and then the size of the current [[SCREEN|screen]] (800, 600).
2016-03-18 11:36:04 +00:00
{{PageSeeAlso}}
* [[_HEIGHT]], [[_DESKTOPHEIGHT]]
* [[_WIDTH]], [[_SCREENIMAGE]]
2019-04-15 01:15:33 +00:00
{{PageNavigation}}
<