We have released version 4.9.8 of FlowChartX. It contains the following new features and improvements:
Multiple labels per nodeThe NodeLabel class allows multiple captions to be displayed for a single flowchart node of any type. Node labels provide a set of properties allowing full customization of their display and positioning. Label position is defined by specifying a pin point and offset from it, set through SetCornerPosition, SetEdgePosition, SetCenterPosition methods. In addition, the HorizontalAlign and VerticalAlign properties of NodeLabel specify on which side of pin point to draw the label's caption.
For example, following code adds extra labels to top-left and bottom-right corners of a Box:
Dim node As box
Set node = fcx.CreateBox(50, 50, 100, 80)
node.Text = "text" ' centered main text
Dim lb1 As NodeLabel
Set lb1 = New NodeLabel
lb1.Text = "label 1"
lb1.SetCornerPosition 0, 0, 0
lb1.HorizontalAlign = saNear
lb1.VerticalAlign = saNear
lb1.BackColor = vbRed
lb1.TextColor = vbWhite
lb1.Margin = 1
node.AddLabel lb1
Dim lb2 As NodeLabel
Set lb2 = New NodeLabel
lb2.Text = "label 2"
lb2.SetCornerPosition 2, 0, 0
lb2.HorizontalAlign = saFar
lb2.VerticalAlign = saFar
lb2.BackColor = vbYellow
lb2.TextColor = vbRed
node.AddLabel lb2
Miscellaneous- The bhMoveLabels behavior lets user move link and node labels interactively.
- HorizontalOffset and VerticalOffset now work for arrow labels positioned using SetLinkLengthPosition method.
Installer for the latest version can be downloaded here, or from the
clients area on our site.
https://www.mindfusion.eu/FCXdemoPro.zip Enjoy!