Blitz3D+ Command Reference

DesktopHeight ( )

Parameters

None.

Description

Returns the current height of the primary Windows desktop, in pixels.

DesktopHeight does not require an open graphics display and queries the desktop each time it is called. Calling Graphics or Graphics3D with no dimensions uses this value for the display height.

See also: DesktopWidth, GraphicsHeight, Graphics.

Example

; DesktopHeight Example
; ---------------------

desktop_w=DesktopWidth()
desktop_h=DesktopHeight()

Graphics
SetBuffer BackBuffer()

While Not KeyHit(1)
    Cls
    Text 0,0,"Desktop height: "+desktop_h+" pixels"
    Text 0,20,"Desktop width: "+desktop_w+" pixels"
    Text 0,40,"Press Esc to exit"
    Flip
Wend

End

Index