This section contains reference material for miscellaneous properties of the DAStatics class.
AreBlockingImportsComplete A read-only property indicating whether all synchronous imports have been downloaded completely. Cm A read-only property that is the centimeter unit (a double). Foot A read-only property that is the foot unit (a double). Inch A read-only property that is the inch unit (a double). Meter A read-only property that is the number of pixels in a meter unit (a double). Mm A read-only property that is the millimeter unit (a double). Pixel A read-only property that is the number of meters in a pixel unit (a DANumber). PixelConstructionMode A read/write property with a Boolean value that, if TRUE, sets the unit of measure to pixels and, if FALSE, sets the unit of measure to meters (this is the default). Site A read/write property that, when set, allows control over error messages. VersionString A read-only property (a string) that is the version string in the form MM.NN.BBBB, where MM is the major version, NN is the minor version, and BBBB is the build number.
A read-only property indicating whether all synchronous imports have been downloaded completely.
Syntax
lib.AreBlockingImportsComplete
A read-only property that is the centimeter unit (a double).
Syntax
lib.Cm
A read-only property that is the foot unit (a double).
Syntax
lib.Foot
A read-only property that is the inch unit (a double).
Syntax
lib.Inch
A read-only property that is the number of pixels in a meter unit (a double).
Syntax
lib.Meter
Remarks
You can use this property to convert meters to pixels. For example, the following code returns the number of pixels in 0.003 meters.
m.Mul(0.003, m.Meter)
A read-only property that is the millimeter unit (a double).
Syntax
lib.Mm
A read-only property that is the number of meters in a pixel unit (a DANumber).
Syntax
lib.Pixel
Remarks
You can use this property to convert pixels to meters. For example, the following code returns the number of meters in 80 pixels.
m.Mul(m.DANumber(80), m.Pixel)
A property with a Boolean value that, if TRUE, sets the unit of measure to pixels and, if FALSE, sets the unit of measure to meters (this is the default). Ordinarily, instead of using this property, developers use either the MeterLibrary or the PixelLibrary property, both of which return a DAStatics object. In the case of PixelLibrary, the statics object returned is automatically set to PixelConstructionMode while, in the case of the MeterLibrary it remains in Meter mode.
Syntax
lib.PixelConstructionMode
A property that, when set, allows control over error messages.
Syntax
lib.Site
A read-only property (a string) that is the version string in the form MM.NN.BBBB, where MM is the major version, NN is the minor version, and BBBB is the build number.
Syntax
lib.VersionString
Remarks
When creating content that takes advantage of new features, you need to make sure you use the VersionString property to check for the version number of the Microsoft® DirectAnimation® run time and use only the capabilities available on that version, as shown in the following JScript example.
m = DAControl.PixelLibrary; if( m.VersionString == "5.01.15.0828") { // This is the Internet Explorer 4.0 } else if( m.VersionString == "5.01.15.1106") { // This is the Internet Explorer 4.01 and Windows 98 release. } else if( m.VersionString == "6.00.03.0518") { // This is the DirectX 6.0 release } // else version numbers 6.00.06.xxx and higher are // Internet Explorer 5/Windows 2000 versions
Top of Page
© 2000 Microsoft and/or its suppliers. All rights reserved. Terms of Use.