MACHINE

Synopsis
MACHINE
Description

Outputs a list that describes the characteristics of the machine. The list has the following format:

[IsWindows Wordsize DrawingSurfaceWidth DrawingSurfaceHeight
IsPaletteEnable WindowsVersionMajor WindowsVersionMinor
WorkingAreaWidth WorkingAreaHeight DesktopWidth DesktopHeight
OuterWindowWidth OuterWindowHeight InnerWindowWidth InnerWindowHeight
XScrollPosition YScrollPosition]

The meaning of each member is given by the table below.

ItemNameMeaning
1IsWindows1, if this is Microsoft Windows. 0, otherwise.
2Wordsize The number of bits in a machine word. If the version of FMSLogo was compiled for a 32-bit machine, this is 32 even when running on a 64-bit Windows.
3DrawingSurfaceWidthThe width of the drawing surface within the FMSLogo screen window, in pixels.
4DrawingSurfaceHeightThe height of the drawing surface within the FMSLogo screen window, in pixels.
5IsPaletteEnabled0, always (FMSLogo does not support displays that use palettes).
6WindowsVersionMajorThe major version of Windows.
7WindowsVersionMinorThe minor version of Windows.
8WorkingAreaWidthThe width of the part of the desktop that is not obscured by the taskbar, in pixels.
9WorkingAreaHeightThe height of the part of the desktop that is not obscured by the taskbar, in pixels.
10DesktopWidthThe width of the whole desktop, in pixels.
11DesktopHeightThe height of the whole desktop, in pixels.
12OuterWindowWidth The width of the FMSLogo screen window, in pixels. This includes the window frame, the vertical scollbar, etc.
13OuterWindowHeight The height of the FMSLogo screen window, in pixels. This includes the window frame, the title bar, the menu bar, the horizontal scrollbar, etc. If the commander window is docked, this also includes the thickness of the splitter and the commander.
14InnerWindowWidth The width of the client area of the FMSLogo screen window, in pixels. This only includes the visible portion of the drawing surface, not the window frame, scrollbar, etc.
15InnerWindowHeight The height of the client area of the FMSLogo screen window, in pixels. This only includes the visible portion of the drawing surface, not the window frame, scrollbar, etc.
16XScrollPosition The position of the screen window's horizontal scrollbar, in pixels. This is a nonnegative integer that indicates how many pixels of the left part of the drawing surface are not visibile because they are scrolled out of view.
17YScrollPosition The position of the screen window's vertical scrollbar, in pixels. This is a nonnegative integer that indicates how many pixels of the top part of the drawing surface are not visibile because they are scrolled out of view.

Example
SHOW MACHINE
[1 32 1000 1000 0 10 0 1920 1040 1920 1080 1155 728 1135 467 0 266]

SourceForge.net Logo