Click to return to the Component Development home page    
Web Workshop  |  Component Development

Stock Ticker Control -- Reference Info


Data Formats

The Stock Ticker control downloads the specified URL at regular intervals and displays the data contained therein. The data can be in text or XRT format.

Text format:

   XRT
   name1TABvalue1TABvalue2...CR/LF
   name2TABvalue1TABvalue2...CR/LF
   ...

XRT format: See the WOSA/XRT spec in the MSDN Library for details on the XRT format. (You can also specify an OLE object that generates data in the XRT format.)


Properties

DataObjectName: Name of the data source. This can be a URL or an OLE object.

DataObjectActive: Indicates whether the data source is active (1) or inactive (0) The ticker control displays data only when DataObjectActive is 1.

ScrollWidth: The amount in which the display is scrolled for each redraw.

ScrollSpeed: The intervals at which the display is scrolled.

ReloadInterval: The interval at which the URL is reloaded periodically.

ForeColor: Foreground color.

BackColor: Background color.

OffsetValues: The value (in pixels) by which the value will be offset from the name in the vertical direction.


Methods

AboutBox: Displays the About dialog box


Events

None.


Sample HTML

   <OBJECT ID=IESTXRT1 TYPE="application/x-oleobject"
      CLASSID="clsid:0CA4A620-8E3D-11CF-A3A9-00A0C9034920"
      CODEBASE="http://activex.microsoft.com/controls/iexplorer/x86/iestock.cab#version=4,71,115,0">
      WIDTH=300 HEIGHT=50>
      <PARAM name="DataObjectName" VALUE="http://example.microsoft.com/iestxrt.xrt">
      <PARAM name="DataObjectActive" VALUE="1">
      <PARAM name="ScrollWidth" VALUE="5">
      <PARAM name="ForeColor" VALUE="#ff0000">
      <PARAM name="BackColor" VALUE="#0000ff">
      <PARAM name="ReloadInterval" VALUE="5000">
   </OBJECT>

   <OBJECT ID=IESTTXT1 TYPE="application/x-oleobject"
      CLASSID="clsid:0CA4A620-8E3D-11CF-A3A9-00A0C9034920"
      CODEBASE="http://activex.microsoft.com/controls/iexplorer/x86/iestock.cab#version=4,71,115,0">
      WIDTH=300 HEIGHT=50>
      <PARAM name="DataObjectName" VALUE="http://example.microsoft.com/iesttxt.dat">
      <PARAM name="DataObjectActive" VALUE="1">
      <PARAM name="ScrollWidth" VALUE="5">
      <PARAM name="ReloadInterval" VALUE="5000">
   </OBJECT>

HomeBack to ActiveX Controls Programming Reference



Back to topBack to top

© 1999 Microsoft Corporation. All rights reserved. Terms of use.