TPcxStreamTimeLabel
Properties
TPcxStreamTimeLabel displays the current stream position to which it is connected to.
When adjusting the DisplayMode property TPcxStreamTimeLabel displays the elapsed time
or the remaining time. When adjusting the DisplayAs property,
this time can be displayed using several formats (seconds, ms, samples, minutes).
TPcxStreamTimeLabel.AutoRefresh
AutoRefresh allows or prevents the
label automatic refresh.
property AutoRefresh : Boolean;
Description
AutoRefresh = True, the label is automatically refreshed if Enabled = True.
AutoRefresh = False, the label is not refreshed and keeps the last received
stream value.
See also
Enabled, DisplayAs, DisplayMode, Stream

TPcxStreamTimeLabel.DisplayAs
The DisplayAs property specifies
the time unit used to display the stream time.
TDisplayAs = (AsMinutes, AsMS, AsSamples, AsSeconds);
property DisplayAs : TDisplayAs;
Description
This property, returns or specifies the time unit used to display the elapsed
or remaining stream time.
DisplayAs = AsMinutes : displays the time in minutes.
The format is mm:ss (mm = minutes, ss = seconds).
DisplayAs = AsMS : displays the time in milliseconds.
The format is sssssssssss (s = milliseconds).
DisplayAs = AsSamples : displays the time in samples.
The format is eeeeeeeeeee (e = samples).
DisplayAs = AsSeconds : displays the time in seconds.
The format is s,mmm (s = seconds, m = milliseconds).
See also
AutoRefresh, DisplayMode

TPcxStreamTimeLabel.DisplayMode
The DisplayMode property specifies
the time mode to be displayed.
TDisplayModes = (ElapseTime,RemainTime);
property DisplayMode : TDisplayModes;
Description
This property returns or specifies the time mode to be displayed.
DisplayMode = ElapseTime : displays the elapsed time since the stream start.
DisplayMode = RemainTime : displays the remaining time before the end of
the file related to the stream.
See also
AutoRefresh, DisplayAs

TPcxStreamTimeLabel.Enabled
Enabled enables or disables the
label.
property Enabled : Boolean;
Description
Enabled = True enables the label, if AutoRefresh = True, the refresh resumes
immediately.
Enabled = False disables the label and displays it in a grayed zone, the
label is not refreshed anymore no matter the AutoRefresh value.
See also
AutoRefresh, Stream

TPcxStreamTimeLabel.Stream
The Stream property specifies the stream whose time must be displayed.
property Stream : TPcxCustomStream;
Description
This property specifies or returns the stream whose time must be displayed, if the stream is destroyed, the Stream property returns nil. The stream can be of theTPcxOutputStream or TPcxInputStream type.
See also
TPcxOutputStream, TPcxInputStream
