Share via


Thermometer Foundation Class

Category User Interface
Default Catalog Visual FoxPro Catalog\Foundation Classes\Dialogs
Class _thermometer
Base Class Form
Class Library _therm.vcx
Parent Class _thermometer
Sample ...\Samples\Solution\Ffc\therm.scx

Remarks

This class, when placed on a form, provides a standard thermometer class.

To use, drop the class on a project or, from the Component Gallery Item Shortcut Menu, select Add to Project. When you drop the class on a project, you can choose between adding the class, creating a subclass, or creating a form. If you choose Create a new form from the selected class, Visual FoxPro displays the Open dialog box so you can specify the name of the form, then creates and opens the form in the Form Designer. You need to specify appropriate property values in the Update method.

Properties, Events, Methods Description
cCurrentTask property Specifies the current task.
Default: ""
iBasis property Specifies the basis for calculating the
percentage.
Default: 0
iPercentage property Specifies the percentage completion at
which the display updates.
Default: 0
iProgress property Specifies the amount
completed(iPercentage).
Default: 0
Complete method Displays 100% complete thermometer.
Syntax: Complete(m.cTask)
Return: none
Arguments:
m.cTask specifies what to display when
progress is complete.
Update method Updates the thermometer.
Syntax: Update(iProgress, cTask)
Return: none
Arguments:
iProgress specifies the progress
increment.
cTask specifies the message to be
displayed.
cThermRef property Internal to the class.
ShpThermBarMaxWidth property Internal to the class.

See Also

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