This class, when placed on a form, provides a standard thermometer 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
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:
Return: none Arguments: m.cTask specifies what to display when progress is complete. |
Update method |
Updates the thermometer.
Syntax:
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. |