IHTMLMarqueeElement::trueSpeed Property
Sets or retrieves whether the position of the marquee is calculated using the IHTMLMarqueeElement::scrollDelay and IHTMLMarqueeElement::scrollAmount properties and the actual time elapsed from the last clock tick.
Syntax
HRESULT IHTMLMarqueeElement::get_trueSpeed(VARIANT_BOOL *p); HRESULT IHTMLMarqueeElement::put_trueSpeed(VARIANT_BOOL v);
Parameters
- p
Pointer to a variable of type VARIANT_BOOL that receives one of the values listed in Possible Values.- v
VARIANT_BOOL that specifies one of the values listed in Possible Values.
Possible Values
VARIANT_FALSE Default. Marquee computes movement based on 60-millisecond ticks of the clock. This means every IHTMLMarqueeElement::scrollDelay value under 60 is ignored, and the marquee advances the amount of IHTMLMarqueeElement::scrollAmount each 60 milliseconds. For example, if IHTMLMarqueeElement::scrollDelay is 6 and IHTMLMarqueeElement::scrollAmount is 10, the marquee advances 10 pixels every 60 milliseconds. VARIANT_TRUE Marquee advances the pixel value of IHTMLMarqueeElement::scrollAmount by the number of milliseconds set for IHTMLMarqueeElement::scrollDelay. For example, the marquee would advance 10 pixels for every 6 milliseconds if IHTMLMarqueeElement::scrollDelay is 6, IHTMLMarqueeElement::scrollAmount is 10, and the value of IHTMLMarqueeElement::trueSpeed is true
.
Return Value
Returns S_OK if successful, or an error value otherwise.
Remarks
The IHTMLMarqueeElement::trueSpeed property indicates that the exact IHTMLMarqueeElement::scrollDelay value specified is used to move the marquee text. If IHTMLMarqueeElement::trueSpeed is
false
, all IHTMLMarqueeElement::scrollDelay values of 59 or less are rounded up to 60 milliseconds.