Share via


System Metrics Foundation Class

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.

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

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

Concepts

Guidelines for Using Visual FoxPro Foundation Classes

Reference

Visual FoxPro Foundation Classes A-Z

Other Resources

Foundation Class Samples