Desktop (gb.qt4)
This class is used to get information about the desktop and the screen.
This class is static.
Constants
Charset
|
Returns the charset used by the graphical interface for displaying text.
|
Static properties
H
|
A synonymous of the Height property.
|
HasSystemTray
|
Return if the desktop has a system tray.
|
Height
|
Return the height of the usable desktop rectangle displayed on the default monitor.
|
Platform
|
Return the underlying desktop platform.
|
Resolution
|
Returns the desktop screen resolution in DPI.
|
Scale
|
Returns half of the height of the default desktop font in pixels.
|
Type
|
Return the current desktop environment name.
|
Types
|
Return all desktop types defined by the environment.
|
W
|
A synonymous of the Width property.
|
Width
|
Return the width of the usable desktop rectangle displayed on the default monitor.
|
X
|
Return the left coordinate of the usable desktop rectangle displayed on the default monitor.
|
Y
|
Return the top coordinate of the usable desktop rectangle displayed on the default monitor.
|
Static methods
Is
|
Return if the current desktop has a specific type.
|
Screenshot
|
Return a screenshot of the desktop as a Picture object.
|
Examples
'This example displays desktop properties in a message box. It formats the message using rich text.
PUBLIC SUB ButtonProperties_Click()
DIM p AS String
p = "<h2>Desktop Properties</h2>"
p &= "Charset <b>" & Desktop.Charset & "</b>"
p &= "<br>Height <b>" & Desktop.Height & "</b>"
p &= "<br>Resolution <b>" & Desktop.Resolution & "</b>"
p &= "<br>Scale <b>" & Desktop.Scale & "</b>"
p &= "<br>Width <b>" & Desktop.Width & "</b>"
Message.Info(p)
END