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>
Adds DABehavior objects 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
)
Begins, ends, or cancels a drag operation of any object except Line, Menu, Shape, and Timer. For more information, consult a Visual Basic Reference.
controlObj.Drag(
Action
)
Moves an object. For more information, consult a Visual Basic reference.
controlObj.Move(
left,
[top],
[width],
[height]
)
Moves the focus to the specified object. For more information, consult a Visual Basic Reference.
controlObj.SetFocus( )
Displays a selected topic in a Help file using the What's This popup provided by Windows 95 Help. For more information, consult a Visual Basic reference.
controlObj.ShowWhatsThis( )
Starts the model.
controlObj.Start( )
Places a specified object at the front or back of the z-order within its graphical level. For more information, consult a Visual Basic reference.
controlObj.ZOrder(
[Position]
)
Sets the background image for situations where the browser does not support windowless controls.
controlObj.BackgroundImage
Returns a DAImage object.
Returns the container of an object. For more information, consult a Visual Basic reference.
controlObj.Container
Returns/sets the icon to be displayed as the pointer in a drag-and-drop operation. For more information, consult a Visual Basic reference.
controlObj.DragIcon
Returns/sets a value that determines whether manual or automatic drag mode is used. For more information, consult a Visual Basic reference.
controlObj.DragMode
Returns/sets the height of an object. For more information, consult a Visual Basic reference.
controlObj.Height
Specifies the default Help file context ID for an object. For more information, consult a Visual Basic reference.
controlObj.HelpContextID
Establishes the DAImage displayed by the model.
controlObj.Image
Returns/sets the number identifying a control in a control array. For more information, consult a Visual Basic reference.
controlObj.Index
Returns/sets the distance between the internal left edge of an object and the left edge of its container. For more information, consult a Visual Basic reference.
controlObj.Left
Sets the unit of measurement to meters and the positive y-axis to up.
controlObj.MeterLibrary
Returns the DAStatics object.
Returns the name used in code to identify an object. For more information, consult a Visual Basic reference.
controlObj.Name
Returns an object in a control. For more information, consult a Visual Basic reference.
controlObj.Object
Returns the object on which this object is located. For more information, consult a Visual Basic reference.
controlObj.Parent
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
Returns the DAStatics object.
Establishes the sound behavior when the model is displayed.
controlObj.Sound
Returns the DASound object.
Returns/sets a value indicating whether a user can use the TAB key to give the focus to an object. For more information, consult a Visual Basic reference.
controlObj.TabStop
Stores any extra data needed for your program. For more information, consult a Visual Basic reference.
controlObj.Tag
Returns/sets the text displayed when the mouse is paused over the control. For more information, consult a Visual Basic reference.
controlObj.ToolTipText
Returns/sets the distance between the internal top edge of an object and the top edge of its container.
controlObj.Top
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
Returns/sets a value that determines whether an object is visible or hidden. For more information, consult a Visual Basic reference.
controlObj.Visible
Returns/sets an associated context number for an object. For more information, consult a Visual Basic reference.
controlObj.WhatsThisHelpID
Returns/sets the width of an object. For more information, consult a Visual Basic reference.
controlObj.Width
Occurs when a drag-and-drop operation is completed. For more information, consult a Visual Basic reference.
controlObj.DragDrop(
source,
x,
y
)
Occurs when a drag-and-drop operation is in progress. For more information, consult a Visual Basic reference.
controlObj.DragOver(
source,
x,
y,
state
)
Occurs when an object receives the focus. For more information, consult a Visual Basic reference.
controlObj.GotFocus( )
Occurs when an object loses the focus. For more information, consult a Visual Basic reference.
controlObj.LostFocus( )
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.