DAViewerControl Class


The DAViewerControl displays a DirectAnimation model in an HTML page. Here is an example of how it is specified:


<DIV ID=controlDiv>
<OBJECT ID="DAViewer"
        STYLE="position:absolute; left:10; top:10;width:450;height:450"
        CLASSID="CLSID:B6FFC24C-7E13-11D0-9B47-00C04FC2F51D">
</OBJECT>
</DIV>

DAViewerControl Subroutines

bullet1.gifAddBvrToRun

bullet1.gifDrag

bullet1.gifMove

bullet1.gifSetFocus

bullet1.gifShowWhatsThis

bullet1.gifStart

bullet1.gifZOrder


AddBvrToRun

Adds DABehaviors that are not a part of the model. When the system starts the model, it retrieves these additional behaviors and runs them with the same start time as the behaviors included in the model.

viewObj.AddBvrToRun(
  bvr
  )

Parameters
bvr
The DABehavior object to add.


Drag

Consult a Visual Basic Reference.

controlObj.Drag(
  Action
  )


Move

Consult a Visual Basic reference.

controlObj.Move(
  left,
  [top],
  [width],
  [height]
  )


SetFocus

Consult a Visual Basic Reference.

controlObj.SetFocus( )


ShowWhatsThis

Consult a Visual Basic reference.

controlObj.ShowWhatsThis( )


Start

Starts the model.

controlObj.Start( )


ZOrder

Consult a Visual Basic reference.

controlObj.ZOrder(
  [Position]
  )

DAViewerControl Properties

bullet1.gifBackgroundImage

bullet1.gifContainer

bullet1.gifDragIcon

bullet1.gifDragMode

bullet1.gifHeight

bullet1.gifHelpContextID

bullet1.gifImage

bullet1.gifIndex

bullet1.gifInputImage

bullet1.gifLeft

bullet1.gifMeterLibrary

bullet1.gifName

bullet1.gifObject

bullet1.gifParent

bullet1.gifPixelLibrary

bullet1.gifSound

bullet1.gifTabStop

bullet1.gifTag

bullet1.gifToolTipText

bullet1.gifTop

bullet1.gifUpdateInterval

bullet1.gifVisible

bullet1.gifWhatsThisHelpID

bullet1.gifWidth


BackgroundImage

Sets the background image for situations where the browser does not support windowless controls.

controlObj.BackgroundImage

Return Values

Returns a DAImage object.


Container

Consult a Visual Basic reference.

controlObj.Container


DragIcon

Consult a Visual Basic reference.

controlObj.DragIcon


DragMode

Consult a Visual Basic reference.

controlObj.DragMode


Height

Consult a Visual Basic reference.

controlObj.Height


HelpContextID

Consult a Visual Basic reference.

controlObj.HelpContextID


Image

Establishes the DAImage displayed by the model.

controlObj.Image


Index

Consult a Visual Basic reference.

controlObj.Index


InputImage

TBD

controlObj.InputImage


Left

Consult a Visual Basic reference.

controlObj.Left


MeterLibrary

Sets the unit of measurement to meters and the positive y-axis to up.

controlObj.MeterLibrary

Return Values

Returns the DAStatics object.

See Also

PixelLibrary


Name

Consult a Visual Basic reference.

controlObj.Name


Object

Consult a Visual Basic reference.

controlObj.Object


Parent

Consult a Visual Basic reference.

controlObj.Parent


PixelLibrary

Sets the unit of measurement to pixel and the positive y-axis to down. Pixel measurements are only available for constructing behaviors. When inquiring for a value, the returned measurement is always in meters.

controlObj.PixelLibrary

Return Values

Returns the DAStatics object.

See Also

Pixel, PixelConstructionMode


Sound

Establishes the sound behavior when the model is displayed.

controlObj.Sound

Return Values

Returns the DASound object.


TabStop

Consult a Visual Basic reference.

controlObj.TabStop


Tag

Consult a Visual Basic reference.

controlObj.Tag


ToolTipText

Consult a Visual Basic reference.

controlObj.ToolTipText


Top

Returns/sets the distance between the internal top edge of an object and the top edge of its container.

controlObj.Top


UpdateInterval

Sets the interval for updating the model, in seconds (a double). Examples of where this property is useful include navigational controls and menu elements, which can use a low update rate.

controlObj.UpdateInterval


Visible

Consult a Visual Basic reference.

controlObj.Visible


WhatsThisHelpID

Consult a Visual Basic reference.

controlObj.WhatsThisHelpID


Width

Consult a Visual Basic reference.

controlObj.Width

DAViewerControl Events

bullet1.gifDragDrop

bullet1.gifDragOver

bullet1.gifGotFocus

bullet1.gifLostFocus


DragDrop

Consult a Visual Basic reference.

controlObj.DragDrop(
  source,
  x,
  y
  )


DragOver

Consult a Visual Basic reference.

controlObj.DragOver(
  source,
  x,
  y,
  state
  )


GotFocus

Consult a Visual Basic reference.

controlObj.GotFocus( )


LostFocus

Consult a Visual Basic reference.

controlObj.LostFocus( )

© 1997 Microsoft Corporation. All rights reserved. Terms of Use.