by Jerm » Fri Apr 16, 2004 3:10 pm
The delay works but if you set it to a high value, like 5 seconds, then you will not see any scrolling text unless you apply it to a selection that is greater than 5 seconds.
From [url=http://developer.apple.com/documentation/QuickTime/APIREF/SOURCESIII/textmediaaddtesample.htm#//apple_ref/c/func/TextMediaAddTESample]
Apple Developer Documentation on this[/url]
dfDontAutoScale
Does not scale the text if the track bounds increase.
dfClipToTextBox
Clips to the text box only. This is useful if the text overlays the video.
dfShrinkTextBoxToFit (Calculate Size)
Recalculates size of the textBox parameter to just fit the given text and stores this rectangle with the text data.
dfScrollIn
Scrolls the text in until the last of the text is in view.
dfScrollOut
Scrolls text out until the last of the text is out of view. If both dfScrollIn and dfScrollOut are set, the text is scrolled in, then out.
dfHorizScroll
Scrolls a single line of text horizontally. If the dfHorizScroll flag is not set, then the scrolling is vertical.
dfReverseScroll
If set, scrolls vertically down, rather than up. If not set, horizontal scrolling proceeds toward the left rather than toward the right.
dfContinuousScroll
If this flag is set, the text media handler lets new samples cause previous samples to scroll out. You must also set dfScrollIn or dfScrollOut, or both, for this to take effect.
dfFlowHoriz
If this flag is set, the text media handler lets horizontally scrolled text flow within the text box instead of extending to the right.
dfDropShadow
If this flag is set, the text media handler displays text with a drop shadow. If you use TextMediaSetTextSampleData (III-2083), the position and translucency of the drop shadow is under your application's control.
dfAntiAlias
If this flag is set, the text media handler displays text with anti-aliasing. Note that although anti-aliased text looks smoother, anti-aliasing can slow down performance.
dfKeyedText
If this flag is set, the text media handler renders text over the background without drawing the background color. This technique is also known as "masked text."