Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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 value = object.put_trueSpeed(VARIANT_BOOL v);HRESULT value = object.get_trueSpeed(VARIANT_BOOL* p);

Property values

Type: VARIANT_BOOL

VARIANT_FALSE (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 (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.

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.

 

 

Community Additions

ADD
Show:
© 2015 Microsoft