Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
This Document is not yet Rated  Rate this Document

How do I programmatically move Report Objects to the foreground/background in DIAdem?

Primary Software: DIAdem
Primary Software Version: 9.1
Primary Software Fixed Version: N/A
Secondary Software: N/A

Problem: DIAdem reports consist of Report Objects. DIAdem provides the ability to programmatically generate and modify Report Objects using the VBScripting tool. In many cases it is necessary to move objects to the foreground or background. How can objects depth be changed programmatically?

Solution: The GraphObjMove function adjusts Graph Objects depth position on a Report Sheet. GraphObjMove accepts two parameters:

  • GraphObjName - A string representation of the Report Object to move.

  • DHI1 - An integer value which determines the direction to move the Report Object. A value of 1 moves the Report Object forward. A value of -1 moves the Report Object backward.



In order to see the changes updated on the Report Object, PicUpdate must be invoked after the call to GraphObjMove.

Example:

Call GraphObjNew("Freetext","New Text")
Call GraphObjOpen("New Text")
TxtTxt ="Test Report"
     TxtSize =20
     TxtColor ="red"
     TxtPosX =50
     TxtPosY =50
Call GraphObjClose("New Text")

Call GraphObjMove("New Text",1)
Call PicUpdate


Related Links:
KnowledgeBase[3EAECRE6]: How Do I Set the Active Worksheet in DIAdem Report?
KnowledgeBase[2N7B7JZL]: Assigning Data Channels to DIAdem Graph Object from VBScript

Attachments:





Report Date: 12/12/2005
Last Updated: 03/27/2006
Document ID: 3SBID3A8

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit