Index Topic Contents | |||
Previous Topic: DAVector3 Class Next Topic: Java Reference - Classes and Interfaces |
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
DAViewerControl Class
AddBehaviorToRunAdds 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.AddBehaviorToRun(
bvr
)Parameters
- bvr
- The DABehavior object to add.
As an example, consider the following VBScript sample, which displays the local time as a text value.
<HTML> <BODY> <CENTER><INPUT TYPE="TEXT" NAME="txtInp" VALUE=""></CENTER> <OBJECT ID="DAControl" WIDTH=400 HEIGTH=300 CLASSID="CLSID:B6FFC24C-7E13-11D0-9B47-00C04FC2F51D"> </OBJECT> </HTML> </BODY> <OBJECT ID="DAControl" WIDTH=400 HEIGTH=300 CLASSID="CLSID:B6FFC24C-7E13-11D0-9B47-00C04FC2F51D"> </OBJECT> <SCRIPT LANGUAGE="VBScript"> Sub window_onLoad Set m = DAControl.MeterLibrary Set timeVal = m.Localtime Set timeVal = timeVal.AnimateProperty( "txtInp.value", "VBScript", false, .01 ) DAControl.AddBehaviorToRun( timeVal ) DAControl.Start End Sub </SCRIPT>DAViewerControl Class
DragBegins, 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
)DAViewerControl Class
MoveMoves an object. For more information, consult a Visual Basic reference.
controlObj.Move(
left,
[top],
[width],
[height]
)DAViewerControl Class
SetFocusMoves the focus to the specified object. For more information, consult a Visual Basic Reference.
controlObj.SetFocus( )
DAViewerControl Class
ShowWhatsThisDisplays 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( )
DAViewerControl Class
StartStarts the model.
controlObj.Start( )
DAViewerControl Class
ZOrderPlaces 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]
)DAViewerControl Properties
DAViewerControl Class
BackgroundImageSets the background image for situations where the browser does not support windowless controls.
controlObj.BackgroundImage
Return Values
Returns a DAImage object.
DAViewerControl Class
ContainerReturns the container of an object. For more information, consult a Visual Basic reference.
controlObj.Container
DAViewerControl Class
DragIconReturns/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
DAViewerControl Class
DragModeReturns/sets a value that determines whether manual or automatic drag mode is used. For more information, consult a Visual Basic reference.
controlObj.DragMode
DAViewerControl Class
HeightReturns/sets the height of an object. For more information, consult a Visual Basic reference.
controlObj.Height
DAViewerControl Class
HelpContextIDSpecifies the default Help file context ID for an object. For more information, consult a Visual Basic reference.
controlObj.HelpContextID
DAViewerControl Class
ImageEstablishes the DAImage displayed by the model.
controlObj.Image
DAViewerControl Class
IndexReturns/sets the number identifying a control in a control array. For more information, consult a Visual Basic reference.
controlObj.Index
DAViewerControl Class
LeftReturns/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
DAViewerControl Class
MeterLibrarySets the unit of measurement to meters and the positive y-axis to up.
controlObj.MeterLibrary
Return Values
Returns the DAStatics object.
See Also
DAViewerControl Class
NameReturns the name used in code to identify an object. For more information, consult a Visual Basic reference.
controlObj.Name
DAViewerControl Class
ObjectReturns an object in a control. For more information, consult a Visual Basic reference.
controlObj.Object
DAViewerControl Class
ParentReturns the object on which this object is located. For more information, consult a Visual Basic reference.
controlObj.Parent
DAViewerControl Class
PixelLibrarySets 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
DAViewerControl Class
SoundEstablishes the sound behavior when the model is displayed.
controlObj.Sound
Return Values
Returns the DASound object.
DAViewerControl Class
TabStopReturns/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
DAViewerControl Class
TagStores any extra data needed for your program. For more information, consult a Visual Basic reference.
controlObj.Tag
DAViewerControl Class
ToolTipTextReturns/sets the text displayed when the mouse is paused over the control. For more information, consult a Visual Basic reference.
controlObj.ToolTipText
DAViewerControl Class
TopReturns/sets the distance between the internal top edge of an object and the top edge of its container.
controlObj.Top
DAViewerControl Class
UpdateIntervalSets 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
DAViewerControl Class
VisibleReturns/sets a value that determines whether an object is visible or hidden. For more information, consult a Visual Basic reference.
controlObj.Visible
DAViewerControl Class
WhatsThisHelpIDReturns/sets an associated context number for an object. For more information, consult a Visual Basic reference.
controlObj.WhatsThisHelpID
DAViewerControl Class
WidthReturns/sets the width of an object. For more information, consult a Visual Basic reference.
controlObj.Width
DAViewerControl Events
DAViewerControl Class
DragDropOccurs when a drag-and-drop operation is completed. For more information, consult a Visual Basic reference.
controlObj.DragDrop(
source,
x,
y
)DAViewerControl Class
DragOverOccurs when a drag-and-drop operation is in progress. For more information, consult a Visual Basic reference.
controlObj.DragOver(
source,
x,
y,
state
)DAViewerControl Class
GotFocusOccurs when an object receives the focus. For more information, consult a Visual Basic reference.
controlObj.GotFocus( )
DAViewerControl Class
LostFocusOccurs when an object loses the focus. For more information, consult a Visual Basic reference.
controlObj.LostFocus( )
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.