Freigeben über


System Metrics Foundation Class

Category System Utilities
Default Catalog Visual FoxPro Catalog\Foundation Classes\Utilities
Class _sysmetrics
Base Class Custom
Class Library _system.vcx
Parent Class _custom
Sample ...\Samples\Solution\Ffc\Logo.scx

Remarks

Provides access to system metric information that might be useful in your applications as well as necessary for Windows 2000 Logo compliancy. System metrics such as mousewheel present, number of mouse buttons, and number of monitors are provided with the class, but any valid system metric can be queried.

To use, drop the class on a project or form or, from the Component Gallery Item Shortcut Menu, select Add to Project or Add to Form. When you add the class to a form, Visual FoxPro places the class icon on the form. You can specify the appropriate property values and provide any necessary input and output objects. When you drop the class on a project, you can choose between adding the class or creating a subclass.

See Guidelines for Using Visual FoxPro Foundation Classes for more information on using foundation classes.

Properties, Events, Methods Description
lMouseWheelPresent property Returns .T. if MouseWheel is present on mouse.
nMonitors property Returns the number of monitors attached to system.
nMouseButtons property Returns the number of mouse buttons on the mouse.

See Also

Guidelines for Using Visual FoxPro Foundation Classes | Visual FoxPro Foundation Classes A-Z | Visual FoxPro Foundation Classes