|
Previous Top Next |
Prototype: | (LONG pControLToDisplay,Byte pUpdateOnShow=1) |
pControLToDisplay | FEQ of a control to display |
pUpdateOnShow | Indicates if the control should be updated using DISPLAY() when ShowProgress is called. |
The Progress Class can display multiple controls that are then updated when the progress is updated. The controls added are unhidden when the progress is initialized and hidden again if the HideUnhide property is TRUE.
Example:
ITP ITProgressClass
Code
Open(MyFile)
Set(MYF:MyKey)
ITP.Init(?Progress1,Records(MYF:MyKey),True) !! Initialize and tell it to handle more controls...
ITP.AddDisplayControl(?CancelButton,False) !! ... and add the ?CancelButton...
ITP.HideControls(False) !! ... and unhide all handled controls while the progress is running
See also: