<< Click to Display Table of Contents >>
ChangePenPos |
ChangePenPos(Source, Dest)
Modifies the drawing order of Pens on an E3Chart. This method contains the following parameters:
•Source: Determines the index of a Pen to move, starting at one
•Dest: Determines the destination of a Pen, starting at one
A situation in which this method is especially useful is when users have a line-shaped Pen and an area-shaped Pen. If the area-shaped Pen is drawn after the line-shaped Pen, that first Pen may hide the last one. A solution could be to invert the drawing order of these Pens. The next script contains an example of using this method.
Sub CommandButton1_Click()
' Moves Pen 1 to position 2.
Screen.Item("E3Chart1").Pens.ChangePenPos(1, 2)
End Sub