Search
FlowChart.ItemsPasted Event
See Also
 



( a feature of FlowChartX Pro edition)

Raised when an user pastes diagram items from the clipboard by pressing CTRL+V.

 Syntax

VB6  Copy Code

Public Event ItemsPasted

 Event Data

Parameter

Type

Description

startZ

[input] long

The z-index of the first pasted item.

Dispatch ID: 86

 Remarks

Raised when an user pastes diagram items from the clipboard by pressing CTRL+V. Pasted items are added to the end of the Z order, starting from index startZ. I.e. when this event occurs, all diagram elements whose ZIndex is greater than or equal to startZ are newly pasted.

 Example

The following code snippet changes the color of all pasted boxes.

VB6  Copy Code

Private Sub fcx_ItemsPasted(ByVal startZ As Long)

    Dim b As box

    For Each b In fcx.boxes
        If b.ZIndex >= startZ Then b.FillColor = vbRed
    Next b

End Sub

 See Also