Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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.

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.