CwProgressBar
CwProgressBar visually represents the progress of a lengthy operation.
Protocol
marquee
answer ‘true’ if the receiver is in marquee mode (progress indicator moves continuously along the length of the bar)
marquee:
set the marquee mode of the receiver
maximum
answer the largest value the receiver can hold
maximum:
set the largest value the receiver can hold
minimum
answer the smallest value the receiver can hold
minimum:
set the smallest value the receiver can hold
orientation
answer the orientation of the receiver
orientation:
set the orientation of the receiver (XmVERTICAL or XmHORIZONTAL)
smooth
answer ‘true’ if the receiver is in smooth mode
smooth:
set the smooth mode of the receiver – ignored unless running in Windows Classic theme
state
answer the state of the receiver
state:
set the state of the receiver (XmProgressStateNormal, XmProgressStateError, or XmProgressStatePaused) – ignored on Windows XP
value
answer the current value of the receiver
value:
set the current value of the receiver (must be between minimum and maximum)
Callbacks and Events
The progress bar has no callbacks or events specific to it.
Example
progressBar := CwProgressBar
createWidget: 'aCwProgressBar' "$NON-NLS$"
parent: workWindow
argBlock: [:w | w
x: 4;
y: 4;
width: 296;
height: 20].
progressBar manageChild.
progressButton setValuesBlock: [:w |
w
leftOffset: 108;
leftAttachment: XmATTACHFORM;
topOffset: 40;
topAttachment: XmATTACHFORM
].
 
Last modified date: 01/29/2015