次の方法で共有


Stop Watch Foundation Class

This class, when placed on a form, provides a stop watch control.

Category

Date/Time

Default Catalog

Visual FoxPro Catalog\Foundation Classes\Date/Time

Class

_stopwatch

Base Class

Container

Class Library

_datetime.vcx

Parent Class

_container

Sample

...\Samples\Solution\Controls\Timer\swatch.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 icon on the form where it will run on the active form. When you drop the class on a project, you can choose between adding the class or creating a subclass.

Properties, Events, Methods

Description

Increment method

Increments the stopwatch display.

Syntax: Increment( )

Return: none

Arguments: none

Reset method

Resets the stopwatch.

Syntax: Reset( )

Return: none

Arguments: none

Start method

Starts the stopwatch.

Syntax: Start( )

Return: none

Arguments: none

Stop method

Stops the stopwatch.

Syntax: Stop( )

Return: none

Arguments: none

UpdateDisplay method

Refreshes the display.

Syntax: UpdateDisplay( )

Return: none

Arguments: none

See Also

Concepts

Guidelines for Using Visual FoxPro Foundation Classes

Reference

Visual FoxPro Foundation Classes A-Z

Other Resources

Foundation Class Samples