ImageIndex Property
Description
Get/set the ID of the Image to display to the left of the connection point's caption.
Property Type
Read-write property
Syntax (Visual Basic)
Public Property ImageIndex() As Long
Return Type
Returns the ID of the Image to display to the left of the connection point's caption.
Remarks
Use the ImageIndex to specify the index of the previously loaded image to display next to the connection's caption.
Example
Loads an image and assigns the image index to a connection point:
Dim Image As FlowGraphImage
Set Image = FlowGraph.Images.AddImage
Image.LoadFromFile App.Path & "\Images\NodeImageCustomers.bmp"
Set Image = FlowGraph.Images.AddImage
Image.LoadFromFile App.Path & "\Images\NodeImageOrderDetails.png"
FlowGraph.Pages.RemoveAll
Dim Page As FlowGraphPage
Set Page = FlowGraph.Pages.AddPage
Debug.Print FlowGraph.Pages.Count
Set FlowGraph.ActivePage = Page
Dim pTableCustomers As FlowGraphNode
Set pTableCustomers = Page.Nodes.AddNode
pTableCustomers.Caption = "Customers"
pTableCustomers.Tooltip = "Customers Table"
pTableCustomers.Color = RGB(155, 187, 89)
pTableCustomers.LocationX = 820
pTableCustomers.LocationY = 360
pTableCustomers.ImageIndex = 0
pTableCustomers.Locked = True
See Also
FlowGraphConnectionPoint Object
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.