Contents - Index


GETDIAGRAMATTRIBUTE

 

GetDiagramAttribute('Name.XXXX') returns the value of attribute XXXX for a text item, object, or button in the Diagram window or child diagram window that has the specified name. The attributes are indicated with underline font in the properties menu. Typical attributes are .LEFT, .WIDTH, and .TOP.  Note that Name.XXXX is a string and it must be either a string constant or a predefined string variable.  If the specified name can not be found, this function returns -9999.  Knowing the value of an attribute in the Diagram window is particularly useful when moving objects such as during animation

 

Example:

{A picture is copied into the Diagram window and given the name myPicture.  The following equations return the attributes of myPicture.}

Xpos=getdiagramattribute('myPicture.left') 

YPos=getdiagramattribute('myPicture.top') 

Width=getdiagramattribute('myPicture.width') 

Height=getdiagramattribute('myPicture.height')

Angle=getdiagramattribute('myPicture.angle') 

Hidden=getdiagramattribute('myPicture.hide') 

 

 

See also:  DIAGRAMHEIGHT#

                DIAGRAMWIDTH#

                PIXELSPERINCH#

      

Mathematical Functions