Kbase P100419: How to stop ProgressBar OCX before its maximum value is reached
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  26/01/2005 |
|
Status: Unverified
GOAL:
How to stop ProgressBar OCX control if the task completes before the ProgressBar has hit its maximum value
GOAL:
How to stop ProgressBar OCX from incrementing once the monitored task has finished
GOAL:
How to stop ProgressBar OCX before its maximum value is reached
FACT(s) (Environment):
Windows
FIX:
The current position of the ProgressBar is determined by a value fed in programmatically.
If it is possible to check that the monitored task has finished then, when this check is true, set the current value of the ProgressBar to the maximum value defined for the ProgressBar.
For example:
IF taskComplete THEN
chCtrlFrame:ProgressBar:VALUE = chCtrlFrame:ProgressBar:MAX.
This will cause the ProgressBar to move from its current position to the completed position, thereby ending the process. The ProgressBar can then be reset as follows:
chCtrlFrame:ProgressBar:VALUE = chCtrlFrame:ProgressBar:MIN.