returns a table
number Count -- the number of desktops
found
the table will also contain a
sub-table per desktop, with the following elements
number Width
number Height
number ColorDepth
number Frequency
string Name
Example Usage:
-- get the desktops information
tblDesktops =
Desktops.GetInfo()
-- if the table exists, get the
desktop info
if tblDesktops
then
-- loop through the desktops to
display the information
for
nDTNum = 1,
tblDesktops.Count do
nWidth
= tblDesktops[nDTNum].Width
nHeight
= tblDesktops[nDTNum].Height
nColorDepth
= tblDesktops[nDTNum].ColorDepth
nFrequency
= tblDesktops[nDTNum].Frequency
sName
= tblDesktops[nDTNum].Name
-- build
our output string
sMessage = "Desktop
Width:\t\t"..nWidth.."\r\n".."Desktop Height:\t\t"..nHeight.."\r\n"
sMessage = sMessage.."Desktop
Color Depth:\t"..nColorDepth.."\r\n".."Desktop Frequency:\t"..nFrequency.."\r\n"
Dialog.Message("Desktop "..
nDTNum..": "..sName, sMessage)
end
end