153
Allow resizing the elements of the pool/lane/phase when the user resizes it by drag and drop, or, by holding the CTRL key, resize only the frame
With AxSwimLane1
	.BeginUpdate()
	.AllowDesignHeader = EXSWIMLANELib.AllowDesignHeaderEnum.exDesignHeaderLock
	.AllowLinkControlPoint = EXSWIMLANELib.LinkControlPointEnum.exAllowChangeTo Or EXSWIMLANELib.LinkControlPointEnum.exAllowChangeFrom Or EXSWIMLANELib.LinkControlPointEnum.exEndControlPoint Or EXSWIMLANELib.LinkControlPointEnum.exStartControlPoint
	.AllowPoolContentUpdate = EXSWIMLANELib.AllowPoolContentUpdateEnum.exEnableCtrlMixt
	With .Elements
		.Add("Node <b>1",-64,-64)
		.Add("Node <b>2",64,0).Selected = True
		.Add("Node <b>3",64,-64)
	End With
	With .Pools.Add(-100,-100,250,160)
		.Lane(EXSWIMLANELib.LaneTypeEnum.exLaneHorizontal).Children.Count = 2
		.Lane(EXSWIMLANELib.LaneTypeEnum.exLaneVertical).Children.Count = 2
	End With
	.Links.Add(AxSwimLane1.Elements.Item(1),AxSwimLane1.Elements.Item(2),"L1")
	.EndUpdate()
End With
152
Disable resizing the elements of the pool/lane/phase when the user resizes it by drag and drop
With AxSwimLane1
	.BeginUpdate()
	.AllowDesignHeader = EXSWIMLANELib.AllowDesignHeaderEnum.exDesignHeaderLock
	.AllowLinkControlPoint = EXSWIMLANELib.LinkControlPointEnum.exAllowChangeTo Or EXSWIMLANELib.LinkControlPointEnum.exAllowChangeFrom Or EXSWIMLANELib.LinkControlPointEnum.exEndControlPoint Or EXSWIMLANELib.LinkControlPointEnum.exStartControlPoint
	.AllowPoolContentUpdate = EXSWIMLANELib.AllowPoolContentUpdateEnum.exDisable
	With .Elements
		.Add("Node <b>1",-64,-64)
		.Add("Node <b>2",64,0).Selected = True
		.Add("Node <b>3",64,-64)
	End With
	With .Pools.Add(-100,-100,250,160)
		.Lane(EXSWIMLANELib.LaneTypeEnum.exLaneHorizontal).Children.Count = 2
		.Lane(EXSWIMLANELib.LaneTypeEnum.exLaneVertical).Children.Count = 2
	End With
	.Links.Add(AxSwimLane1.Elements.Item(1),AxSwimLane1.Elements.Item(2),"L1")
	.EndUpdate()
End With
151
Generates a PDF document on a single A0 page with no margins
Dim var_CopyTo
With AxSwimLane1
	.BeginUpdate()
	.AllowLinkControlPoint = &Hffffff80 Or EXSWIMLANELib.LinkControlPointEnum.exAllowChangeTo Or EXSWIMLANELib.LinkControlPointEnum.exAllowChangeFrom Or EXSWIMLANELib.LinkControlPointEnum.exOrthoArrange Or EXSWIMLANELib.LinkControlPointEnum.exMiddleControlPoint Or EXSWIMLANELib.LinkControlPointEnum.exControlPoint Or EXSWIMLANELib.LinkControlPointEnum.exEndControlPoint Or EXSWIMLANELib.LinkControlPointEnum.exStartControlPoint
	With .Elements
		.Add("Element <sha ;;0>A")
		.Add("Element <sha ;;0>B",164,64)
		.Add("Element <sha ;;0>B",0,132)
	End With
	With .Links
		.Add(AxSwimLane1.Elements.Item(1),AxSwimLane1.Elements.Item(2)).CustomPath = "0.5,0.25,0.5,.75"
		.Add(AxSwimLane1.Elements.Item(3),AxSwimLane1.Elements.Item(2)).CustomPath = "0.5,0.25,0.5,.75"
		With .Add(AxSwimLane1.Elements.Item(3),AxSwimLane1.Elements.Item(1))
			.ShowLinkType = EXSWIMLANELib.ShowLinkTypeEnum.exLinkRound
			.StartPos = EXSWIMLANELib.AlignmentEnum.LeftAlignment
			.ArrowSize = 8
			.ArrowColor = RGB(255,255,255)
			.ArrowFrameColor = RGB(0,0,0)
		End With
	End With
	.FitToClient()
	.EndUpdate()
	var_CopyTo = .get_CopyTo("c:/temp/sample.pdf|33.11 in x 46.81 in|0 0 0 0|single")
End With
150
Generates a PDF document that scales the content proportionally by 75% using B3 pages (default margins)
Dim var_CopyTo
With AxSwimLane1
	.BeginUpdate()
	.AllowLinkControlPoint = &Hffffff80 Or EXSWIMLANELib.LinkControlPointEnum.exAllowChangeTo Or EXSWIMLANELib.LinkControlPointEnum.exAllowChangeFrom Or EXSWIMLANELib.LinkControlPointEnum.exOrthoArrange Or EXSWIMLANELib.LinkControlPointEnum.exMiddleControlPoint Or EXSWIMLANELib.LinkControlPointEnum.exControlPoint Or EXSWIMLANELib.LinkControlPointEnum.exEndControlPoint Or EXSWIMLANELib.LinkControlPointEnum.exStartControlPoint
	With .Elements
		.Add("Element <sha ;;0>A")
		.Add("Element <sha ;;0>B",164,64)
		.Add("Element <sha ;;0>B",0,132)
	End With
	With .Links
		.Add(AxSwimLane1.Elements.Item(1),AxSwimLane1.Elements.Item(2)).CustomPath = "0.5,0.25,0.5,.75"
		.Add(AxSwimLane1.Elements.Item(3),AxSwimLane1.Elements.Item(2)).CustomPath = "0.5,0.25,0.5,.75"
		With .Add(AxSwimLane1.Elements.Item(3),AxSwimLane1.Elements.Item(1))
			.ShowLinkType = EXSWIMLANELib.ShowLinkTypeEnum.exLinkRound
			.StartPos = EXSWIMLANELib.AlignmentEnum.LeftAlignment
			.ArrowSize = 8
			.ArrowColor = RGB(255,255,255)
			.ArrowFrameColor = RGB(0,0,0)
		End With
	End With
	.FitToClient()
	.EndUpdate()
	var_CopyTo = .get_CopyTo("c:/temp/sample.pdf|6.93 in x 9.84 in||75%")
End With
149
Generates a PDF document that fits the content exactly to 3 A4 pages wide by 2 pages tall (default margins)
Dim var_CopyTo
With AxSwimLane1
	.BeginUpdate()
	.AllowLinkControlPoint = &Hffffff80 Or EXSWIMLANELib.LinkControlPointEnum.exAllowChangeTo Or EXSWIMLANELib.LinkControlPointEnum.exAllowChangeFrom Or EXSWIMLANELib.LinkControlPointEnum.exOrthoArrange Or EXSWIMLANELib.LinkControlPointEnum.exMiddleControlPoint Or EXSWIMLANELib.LinkControlPointEnum.exControlPoint Or EXSWIMLANELib.LinkControlPointEnum.exEndControlPoint Or EXSWIMLANELib.LinkControlPointEnum.exStartControlPoint
	With .Elements
		.Add("Element <sha ;;0>A")
		.Add("Element <sha ;;0>B",164,64)
		.Add("Element <sha ;;0>B",0,132)
	End With
	With .Links
		.Add(AxSwimLane1.Elements.Item(1),AxSwimLane1.Elements.Item(2)).CustomPath = "0.5,0.25,0.5,.75"
		.Add(AxSwimLane1.Elements.Item(3),AxSwimLane1.Elements.Item(2)).CustomPath = "0.5,0.25,0.5,.75"
		With .Add(AxSwimLane1.Elements.Item(3),AxSwimLane1.Elements.Item(1))
			.ShowLinkType = EXSWIMLANELib.ShowLinkTypeEnum.exLinkRound
			.StartPos = EXSWIMLANELib.AlignmentEnum.LeftAlignment
			.ArrowSize = 8
			.ArrowColor = RGB(255,255,255)
			.ArrowFrameColor = RGB(0,0,0)
		End With
	End With
	.FitToClient()
	.EndUpdate()
	var_CopyTo = .get_CopyTo("c:/temp/sample.pdf|||3 x 2f")
End With
148
Generates a PDF document that fits the content to 3 A3-landscape pages wide by 2 pages tall (custom margins)
Dim var_CopyTo
With AxSwimLane1
	.BeginUpdate()
	.AllowLinkControlPoint = &Hffffff80 Or EXSWIMLANELib.LinkControlPointEnum.exAllowChangeTo Or EXSWIMLANELib.LinkControlPointEnum.exAllowChangeFrom Or EXSWIMLANELib.LinkControlPointEnum.exOrthoArrange Or EXSWIMLANELib.LinkControlPointEnum.exMiddleControlPoint Or EXSWIMLANELib.LinkControlPointEnum.exControlPoint Or EXSWIMLANELib.LinkControlPointEnum.exEndControlPoint Or EXSWIMLANELib.LinkControlPointEnum.exStartControlPoint
	With .Elements
		.Add("Element <sha ;;0>A")
		.Add("Element <sha ;;0>B",164,64)
		.Add("Element <sha ;;0>B",0,132)
	End With
	With .Links
		.Add(AxSwimLane1.Elements.Item(1),AxSwimLane1.Elements.Item(2)).CustomPath = "0.5,0.25,0.5,.75"
		.Add(AxSwimLane1.Elements.Item(3),AxSwimLane1.Elements.Item(2)).CustomPath = "0.5,0.25,0.5,.75"
		With .Add(AxSwimLane1.Elements.Item(3),AxSwimLane1.Elements.Item(1))
			.ShowLinkType = EXSWIMLANELib.ShowLinkTypeEnum.exLinkRound
			.StartPos = EXSWIMLANELib.AlignmentEnum.LeftAlignment
			.ArrowSize = 8
			.ArrowColor = RGB(255,255,255)
			.ArrowFrameColor = RGB(0,0,0)
		End With
	End With
	.FitToClient()
	.EndUpdate()
	var_CopyTo = .get_CopyTo("c:/temp/sample.pdf|16.54 in x 11.69 in|5 mm 5 mm 5 mm 5 mm|3 x 2")
End With
147
Generates a PDF document that fits the content to 2 Letter pages tall, automatically determining the number of pages wide (default margins)
Dim var_CopyTo
With AxSwimLane1
	.BeginUpdate()
	.AllowLinkControlPoint = &Hffffff80 Or EXSWIMLANELib.LinkControlPointEnum.exAllowChangeTo Or EXSWIMLANELib.LinkControlPointEnum.exAllowChangeFrom Or EXSWIMLANELib.LinkControlPointEnum.exOrthoArrange Or EXSWIMLANELib.LinkControlPointEnum.exMiddleControlPoint Or EXSWIMLANELib.LinkControlPointEnum.exControlPoint Or EXSWIMLANELib.LinkControlPointEnum.exEndControlPoint Or EXSWIMLANELib.LinkControlPointEnum.exStartControlPoint
	With .Elements
		.Add("Element <sha ;;0>A")
		.Add("Element <sha ;;0>B",164,64)
		.Add("Element <sha ;;0>B",0,132)
	End With
	With .Links
		.Add(AxSwimLane1.Elements.Item(1),AxSwimLane1.Elements.Item(2)).CustomPath = "0.5,0.25,0.5,.75"
		.Add(AxSwimLane1.Elements.Item(3),AxSwimLane1.Elements.Item(2)).CustomPath = "0.5,0.25,0.5,.75"
		With .Add(AxSwimLane1.Elements.Item(3),AxSwimLane1.Elements.Item(1))
			.ShowLinkType = EXSWIMLANELib.ShowLinkTypeEnum.exLinkRound
			.StartPos = EXSWIMLANELib.AlignmentEnum.LeftAlignment
			.ArrowSize = 8
			.ArrowColor = RGB(255,255,255)
			.ArrowFrameColor = RGB(0,0,0)
		End With
	End With
	.FitToClient()
	.EndUpdate()
	var_CopyTo = .get_CopyTo("c:/temp/sample.pdf|8.50 in x 11.00 in||x 2")
End With
146
Generates a PDF document that fits the content to 1 page wide and as many A4 pages tall as required (default margins)
Dim var_CopyTo
With AxSwimLane1
	.BeginUpdate()
	.AllowLinkControlPoint = &Hffffff80 Or EXSWIMLANELib.LinkControlPointEnum.exAllowChangeTo Or EXSWIMLANELib.LinkControlPointEnum.exAllowChangeFrom Or EXSWIMLANELib.LinkControlPointEnum.exOrthoArrange Or EXSWIMLANELib.LinkControlPointEnum.exMiddleControlPoint Or EXSWIMLANELib.LinkControlPointEnum.exControlPoint Or EXSWIMLANELib.LinkControlPointEnum.exEndControlPoint Or EXSWIMLANELib.LinkControlPointEnum.exStartControlPoint
	With .Elements
		.Add("Element <sha ;;0>A")
		.Add("Element <sha ;;0>B",164,64)
		.Add("Element <sha ;;0>B",0,132)
	End With
	With .Links
		.Add(AxSwimLane1.Elements.Item(1),AxSwimLane1.Elements.Item(2)).CustomPath = "0.5,0.25,0.5,.75"
		.Add(AxSwimLane1.Elements.Item(3),AxSwimLane1.Elements.Item(2)).CustomPath = "0.5,0.25,0.5,.75"
		With .Add(AxSwimLane1.Elements.Item(3),AxSwimLane1.Elements.Item(1))
			.ShowLinkType = EXSWIMLANELib.ShowLinkTypeEnum.exLinkRound
			.StartPos = EXSWIMLANELib.AlignmentEnum.LeftAlignment
			.ArrowSize = 8
			.ArrowColor = RGB(255,255,255)
			.ArrowFrameColor = RGB(0,0,0)
		End With
	End With
	.FitToClient()
	.EndUpdate()
	var_CopyTo = .get_CopyTo("c:/temp/sample.pdf|||1 x")
End With
145
Generates a PDF document on a single A4 page (default margins)
Dim var_CopyTo
With AxSwimLane1
	.BeginUpdate()
	.AllowLinkControlPoint = &Hffffff80 Or EXSWIMLANELib.LinkControlPointEnum.exAllowChangeTo Or EXSWIMLANELib.LinkControlPointEnum.exAllowChangeFrom Or EXSWIMLANELib.LinkControlPointEnum.exOrthoArrange Or EXSWIMLANELib.LinkControlPointEnum.exMiddleControlPoint Or EXSWIMLANELib.LinkControlPointEnum.exControlPoint Or EXSWIMLANELib.LinkControlPointEnum.exEndControlPoint Or EXSWIMLANELib.LinkControlPointEnum.exStartControlPoint
	With .Elements
		.Add("Element <sha ;;0>A")
		.Add("Element <sha ;;0>B",164,64)
		.Add("Element <sha ;;0>B",0,132)
	End With
	With .Links
		.Add(AxSwimLane1.Elements.Item(1),AxSwimLane1.Elements.Item(2)).CustomPath = "0.5,0.25,0.5,.75"
		.Add(AxSwimLane1.Elements.Item(3),AxSwimLane1.Elements.Item(2)).CustomPath = "0.5,0.25,0.5,.75"
		With .Add(AxSwimLane1.Elements.Item(3),AxSwimLane1.Elements.Item(1))
			.ShowLinkType = EXSWIMLANELib.ShowLinkTypeEnum.exLinkRound
			.StartPos = EXSWIMLANELib.AlignmentEnum.LeftAlignment
			.ArrowSize = 8
			.ArrowColor = RGB(255,255,255)
			.ArrowFrameColor = RGB(0,0,0)
		End With
	End With
	.FitToClient()
	.EndUpdate()
	var_CopyTo = .get_CopyTo("c:/temp/sample.pdf|||single")
End With
144
Defines the colors, to display overlapping links

With AxSwimLane1
	.BeginUpdate()
	.AllowLinkControlPoint = EXSWIMLANELib.LinkControlPointEnum.exAllowChangeTo Or EXSWIMLANELib.LinkControlPointEnum.exAllowChangeFrom Or EXSWIMLANELib.LinkControlPointEnum.exEndControlPoint Or EXSWIMLANELib.LinkControlPointEnum.exStartControlPoint
	With .Elements
		.Add("Node <b>1",-64,-64)
		.Add("Node <b>2")
		.Add("Node <b>3",64,-64)
		.Add("Node <b>4",16,-48)
		.Add("Node <b>5",-1024,-48)
		.Add("Node <b>6",16,512)
	End With
	.Links.Add(AxSwimLane1.Elements.Item(1),AxSwimLane1.Elements.Item(2),"L1")
	.Links.Add(AxSwimLane1.Elements.Item(3),AxSwimLane1.Elements.Item(2),"L2")
	.Links.Add(AxSwimLane1.Elements.Item(2),AxSwimLane1.Elements.Item(1),"L3")
	.ShowLinks = EXSWIMLANELib.ShowExtendedLinksEnum.exChangeColorOnOverlap Or EXSWIMLANELib.ShowExtendedLinksEnum.exShowCrossLinksRect Or EXSWIMLANELib.ShowExtendedLinksEnum.exShowExtendedLinks
	.OverlapLinksColors = "red,orange"
	.LinksColor = RGB(128,128,128)
	.AxisStyle = EXSWIMLANELib.LinesStyleEnum.exNoLines
	.ShowGridLines = False
	.EndUpdate()
End With
143
The exPreventOverlapMixt flag must always be used alongside either the exPreventOverlap or exChangeColorOnOverlap flag. When used with the exPreventOverlap flag, it ensures that links avoid overlapping with elements or obstacles, enabling their paths to include both rectangular and diagonal lines. When combined with the exChangeColorOnOverlap flag, overlapping links alternately adjust their width in addition to changing colors (sample 2)

With AxSwimLane1
	.BeginUpdate()
	.AllowLinkControlPoint = EXSWIMLANELib.LinkControlPointEnum.exAllowChangeTo Or EXSWIMLANELib.LinkControlPointEnum.exAllowChangeFrom Or EXSWIMLANELib.LinkControlPointEnum.exEndControlPoint Or EXSWIMLANELib.LinkControlPointEnum.exStartControlPoint
	With .Elements
		.Add("Node <b>1",-64,-64)
		.Add("Node <b>2")
		.Add("Node <b>3",64,-64)
		.Add("Node <b>4",16,-48)
		.Add("Node <b>5",-1024,-48)
		.Add("Node <b>6",16,512)
	End With
	.Links.Add(AxSwimLane1.Elements.Item(1),AxSwimLane1.Elements.Item(2),"L1")
	.Links.Add(AxSwimLane1.Elements.Item(3),AxSwimLane1.Elements.Item(2),"L2")
	.Links.Add(AxSwimLane1.Elements.Item(2),AxSwimLane1.Elements.Item(1),"L3")
	.ShowLinks = EXSWIMLANELib.ShowExtendedLinksEnum.exChangeColorOnOverlap Or EXSWIMLANELib.ShowExtendedLinksEnum.exPreventOverlapMixt Or EXSWIMLANELib.ShowExtendedLinksEnum.exShowCrossLinksRect Or EXSWIMLANELib.ShowExtendedLinksEnum.exShowExtendedLinks
	.LinksColor = RGB(128,128,128)
	.AxisStyle = EXSWIMLANELib.LinesStyleEnum.exNoLines
	.ShowGridLines = False
	.EndUpdate()
End With
142
The exChangeColorOnOverlap flag changes the color for links in areas where they overlap with other links, enhancing clarity and distinction between them

With AxSwimLane1
	.BeginUpdate()
	.AllowLinkControlPoint = EXSWIMLANELib.LinkControlPointEnum.exAllowChangeTo Or EXSWIMLANELib.LinkControlPointEnum.exAllowChangeFrom Or EXSWIMLANELib.LinkControlPointEnum.exEndControlPoint Or EXSWIMLANELib.LinkControlPointEnum.exStartControlPoint
	With .Elements
		.Add("Node <b>1",-64,-64)
		.Add("Node <b>2")
		.Add("Node <b>3",64,-64)
		.Add("Node <b>4",16,-48)
		.Add("Node <b>5",-1024,-48)
		.Add("Node <b>6",16,512)
	End With
	.Links.Add(AxSwimLane1.Elements.Item(1),AxSwimLane1.Elements.Item(2),"L1")
	.Links.Add(AxSwimLane1.Elements.Item(3),AxSwimLane1.Elements.Item(2),"L2")
	.Links.Add(AxSwimLane1.Elements.Item(2),AxSwimLane1.Elements.Item(1),"L3")
	.ShowLinks = EXSWIMLANELib.ShowExtendedLinksEnum.exChangeColorOnOverlap Or EXSWIMLANELib.ShowExtendedLinksEnum.exShowCrossLinksRect Or EXSWIMLANELib.ShowExtendedLinksEnum.exShowExtendedLinks
	.LinksColor = RGB(128,128,128)
	.AxisStyle = EXSWIMLANELib.LinesStyleEnum.exNoLines
	.ShowGridLines = False
	.EndUpdate()
End With
141
The exPreventOverlapMixt flag must always be used alongside either the exPreventOverlap or exChangeColorOnOverlap flag. When used with the exPreventOverlap flag, it ensures that links avoid overlapping with elements or obstacles, enabling their paths to include both rectangular and diagonal lines. When combined with the exChangeColorOnOverlap flag, overlapping links alternately adjust their width in addition to changing colors (sample 1)

With AxSwimLane1
	.BeginUpdate()
	.AllowLinkControlPoint = EXSWIMLANELib.LinkControlPointEnum.exAllowChangeTo Or EXSWIMLANELib.LinkControlPointEnum.exAllowChangeFrom Or EXSWIMLANELib.LinkControlPointEnum.exEndControlPoint Or EXSWIMLANELib.LinkControlPointEnum.exStartControlPoint
	With .Elements
		.Add("Node <b>1",-64,-64)
		.Add("Node <b>2")
		.Add("Node <b>3",64,-64)
		.Add("Node <b>4",16,-48)
		.Add("Node <b>5",-1024,-48)
		.Add("Node <b>6",16,512)
	End With
	.Links.Add(AxSwimLane1.Elements.Item(1),AxSwimLane1.Elements.Item(2),"L1")
	.Links.Add(AxSwimLane1.Elements.Item(3),AxSwimLane1.Elements.Item(2),"L2")
	.Links.Add(AxSwimLane1.Elements.Item(2),AxSwimLane1.Elements.Item(1),"L3")
	.ShowLinks = EXSWIMLANELib.ShowExtendedLinksEnum.exPreventOverlap Or EXSWIMLANELib.ShowExtendedLinksEnum.exPreventOverlapMixt Or EXSWIMLANELib.ShowExtendedLinksEnum.exShowCrossLinksRect Or EXSWIMLANELib.ShowExtendedLinksEnum.exShowExtendedLinks
	.LinksColor = RGB(128,128,128)
	.AxisStyle = EXSWIMLANELib.LinesStyleEnum.exNoLines
	.ShowGridLines = False
	.EndUpdate()
End With
140
The exPreventOverlap flag adjusts the links to prevent them from overlapping the connected objects. The exPreventOverlap option calculates the path between A and B using the A* (A-star) pathfinding algorithm, which can be a time-consuming operation

With AxSwimLane1
	.BeginUpdate()
	.AllowLinkControlPoint = EXSWIMLANELib.LinkControlPointEnum.exAllowChangeTo Or EXSWIMLANELib.LinkControlPointEnum.exAllowChangeFrom Or EXSWIMLANELib.LinkControlPointEnum.exEndControlPoint Or EXSWIMLANELib.LinkControlPointEnum.exStartControlPoint
	With .Elements
		.Add("Node <b>1",-64,-64)
		.Add("Node <b>2")
		.Add("Node <b>3",64,-64)
		.Add("Node <b>4",16,-48)
		.Add("Node <b>5",-1024,-48)
		.Add("Node <b>6",16,512)
	End With
	.Links.Add(AxSwimLane1.Elements.Item(1),AxSwimLane1.Elements.Item(2),"L1")
	.Links.Add(AxSwimLane1.Elements.Item(3),AxSwimLane1.Elements.Item(2),"L2")
	.Links.Add(AxSwimLane1.Elements.Item(2),AxSwimLane1.Elements.Item(1),"L3")
	.ShowLinks = EXSWIMLANELib.ShowExtendedLinksEnum.exPreventOverlap Or EXSWIMLANELib.ShowExtendedLinksEnum.exShowCrossLinksRect Or EXSWIMLANELib.ShowExtendedLinksEnum.exShowExtendedLinks
	.LinksColor = RGB(128,128,128)
	.AxisStyle = EXSWIMLANELib.LinesStyleEnum.exNoLines
	.ShowGridLines = False
	.EndUpdate()
End With
139
How can I replace or add an icon at runtime

With AxSwimLane1
	.BeginUpdate()
	.ReplaceIcon("gAAAABgYACEHgUJFEEAAWhUJCEJEEJggEhMCYEXjUbjkJQECj8gj8hAEjkshYEpk8kf8ClsulsvAExmcvf83js5nU7nkCeEcn8boMaocXosCB9Hn09pkzcEuoL/fE+O" & _
	"kYB0gB9YhIHrddgVcr9aktZADAD8+P8CgIA==")
	.ReplaceIcon("C:\images\favicon.ico",0)
	.AllowLinkControlPoint = EXSWIMLANELib.LinkControlPointEnum.exAllowChangeTo Or EXSWIMLANELib.LinkControlPointEnum.exAllowChangeFrom Or EXSWIMLANELib.LinkControlPointEnum.exEndControlPoint Or EXSWIMLANELib.LinkControlPointEnum.exStartControlPoint
	With .Elements
		.Add("Node <img>1</img>",-64,-64)
		.Add("Node <b>2")
		.Add("Node <b>3",64,-64)
	End With
	.Pools.Add(-100,-100,250,160)
	.Links.Add(AxSwimLane1.Elements.Item(1),AxSwimLane1.Elements.Item(2),"L1")
	.EndUpdate()
End With
138
exActionContextMenuObject, An item from object's context menu is executing. Use the AllowContextMenu property to specify the combination of keys that allows the user to open the object's context menu. Use the ContextMenu property to provide a custom context menu for the objects on the surface. The ActionContextMenu event notifies your application once an action occurs within the object's context menu.
' LayoutEndChanging event - Notifies your application once the control's layout has been changed.
Private Sub AxSwimLane1_LayoutEndChanging(ByVal sender As System.Object, ByVal e As AxEXSWIMLANELib._ISwimLaneEvents_LayoutEndChangingEvent) Handles AxSwimLane1.LayoutEndChanging
	With AxSwimLane1
		Debug.Print( "LayoutEndChanging" )
		Debug.Print( .FormatABC("value = 18 ? `exActionContextMenuObject` : value",e.operation) )
	End With
End Sub

' LayoutStartChanging event - Occurs when the control's layout is about to be changed.
Private Sub AxSwimLane1_LayoutStartChanging(ByVal sender As System.Object, ByVal e As AxEXSWIMLANELib._ISwimLaneEvents_LayoutStartChangingEvent) Handles AxSwimLane1.LayoutStartChanging
	With AxSwimLane1
		Debug.Print( "LayoutStartChanging" )
		Debug.Print( .FormatABC("value = 18 ? `exActionContextMenuObject` : value",e.operation) )
	End With
End Sub

With AxSwimLane1
	.BeginUpdate()
	.AllowDesignHeader = EXSWIMLANELib.AllowDesignHeaderEnum.exDesignHeaderLock
	.AllowLinkControlPoint = EXSWIMLANELib.LinkControlPointEnum.exAllowChangeTo Or EXSWIMLANELib.LinkControlPointEnum.exAllowChangeFrom Or EXSWIMLANELib.LinkControlPointEnum.exEndControlPoint Or EXSWIMLANELib.LinkControlPointEnum.exStartControlPoint
	With .Elements
		.Add("Node <b>1",-64,-64)
		.Add("Node <b>2").Selected = True
		.Add("Node <b>3",64,-64)
	End With
	With .Pools.Add(-100,-100,250,160)
		.Lane(EXSWIMLANELib.LaneTypeEnum.exLaneHorizontal).Children.Count = 2
		.Lane(EXSWIMLANELib.LaneTypeEnum.exLaneVertical).Children.Count = 2
	End With
	.Links.Add(AxSwimLane1.Elements.Item(1),AxSwimLane1.Elements.Item(2),"L1")
	.EndUpdate()
	Debug.Print( "Right-Click the pool, element or the link to open its context menu, and change a property of it" )
End With
137
exContextMenuObject, The object's context menu is running. The user right-clicks an object on the surface, and it's context menu is shown. Use the AllowContextMenu property to specify the combination of keys that allows the user to open the object's context menu. Use the ContextMenu property to provide a custom context menu for the objects on the surface
' LayoutEndChanging event - Notifies your application once the control's layout has been changed.
Private Sub AxSwimLane1_LayoutEndChanging(ByVal sender As System.Object, ByVal e As AxEXSWIMLANELib._ISwimLaneEvents_LayoutEndChangingEvent) Handles AxSwimLane1.LayoutEndChanging
	With AxSwimLane1
		Debug.Print( "LayoutEndChanging" )
		Debug.Print( .FormatABC("value = 17 ? `exContextMenuObject` : value",e.operation) )
	End With
End Sub

' LayoutStartChanging event - Occurs when the control's layout is about to be changed.
Private Sub AxSwimLane1_LayoutStartChanging(ByVal sender As System.Object, ByVal e As AxEXSWIMLANELib._ISwimLaneEvents_LayoutStartChangingEvent) Handles AxSwimLane1.LayoutStartChanging
	With AxSwimLane1
		Debug.Print( "LayoutStartChanging" )
		Debug.Print( .FormatABC("value = 17 ? `exContextMenuObject` : value",e.operation) )
	End With
End Sub

With AxSwimLane1
	.BeginUpdate()
	.AllowDesignHeader = EXSWIMLANELib.AllowDesignHeaderEnum.exDesignHeaderLock
	.AllowLinkControlPoint = EXSWIMLANELib.LinkControlPointEnum.exAllowChangeTo Or EXSWIMLANELib.LinkControlPointEnum.exAllowChangeFrom Or EXSWIMLANELib.LinkControlPointEnum.exEndControlPoint Or EXSWIMLANELib.LinkControlPointEnum.exStartControlPoint
	With .Elements
		.Add("Node <b>1",-64,-64)
		.Add("Node <b>2").Selected = True
		.Add("Node <b>3",64,-64)
	End With
	With .Pools.Add(-100,-100,250,160)
		.Lane(EXSWIMLANELib.LaneTypeEnum.exLaneHorizontal).Children.Count = 2
		.Lane(EXSWIMLANELib.LaneTypeEnum.exLaneVertical).Children.Count = 2
	End With
	.Links.Add(AxSwimLane1.Elements.Item(1),AxSwimLane1.Elements.Item(2),"L1")
	.EndUpdate()
	Debug.Print( "Right-Click the pool, element or the link to open its context menu" )
End With
136
exMoveLane, The user moves/changes the position of the lane of the pool. The AllowMoveLane property specifies the keys combination to allow user to moves/changes the position the lane
' LayoutEndChanging event - Notifies your application once the control's layout has been changed.
Private Sub AxSwimLane1_LayoutEndChanging(ByVal sender As System.Object, ByVal e As AxEXSWIMLANELib._ISwimLaneEvents_LayoutEndChangingEvent) Handles AxSwimLane1.LayoutEndChanging
	With AxSwimLane1
		Debug.Print( "LayoutEndChanging" )
		Debug.Print( .FormatABC("value = 16 ? `exMoveLane` : value",e.operation) )
	End With
End Sub

' LayoutStartChanging event - Occurs when the control's layout is about to be changed.
Private Sub AxSwimLane1_LayoutStartChanging(ByVal sender As System.Object, ByVal e As AxEXSWIMLANELib._ISwimLaneEvents_LayoutStartChangingEvent) Handles AxSwimLane1.LayoutStartChanging
	With AxSwimLane1
		Debug.Print( "LayoutStartChanging" )
		Debug.Print( .FormatABC("value = 16 ? `exMoveLane` : value",e.operation) )
	End With
End Sub

With AxSwimLane1
	.BeginUpdate()
	.AllowDesignHeader = EXSWIMLANELib.AllowDesignHeaderEnum.exDesignHeaderLock
	.AllowLinkControlPoint = EXSWIMLANELib.LinkControlPointEnum.exAllowChangeTo Or EXSWIMLANELib.LinkControlPointEnum.exAllowChangeFrom Or EXSWIMLANELib.LinkControlPointEnum.exEndControlPoint Or EXSWIMLANELib.LinkControlPointEnum.exStartControlPoint
	With .Elements
		.Add("Node <b>1",-64,-64)
		.Add("Node <b>2").Selected = True
		.Add("Node <b>3",64,-64)
	End With
	With .Pools.Add(-100,-100,250,160)
		.Lane(EXSWIMLANELib.LaneTypeEnum.exLaneHorizontal).Children.Count = 2
		.Lane(EXSWIMLANELib.LaneTypeEnum.exLaneVertical).Children.Count = 2
	End With
	.Links.Add(AxSwimLane1.Elements.Item(1),AxSwimLane1.Elements.Item(2),"L1")
	.EndUpdate()
	Debug.Print( "Click the lane's header to drag to a new position" )
End With
135
exResizeLane, The user resizes the lane of the pool. The AllowResizePoolHeader property specifies the keys combination to allow user to resize the header of the pool
' LayoutEndChanging event - Notifies your application once the control's layout has been changed.
Private Sub AxSwimLane1_LayoutEndChanging(ByVal sender As System.Object, ByVal e As AxEXSWIMLANELib._ISwimLaneEvents_LayoutEndChangingEvent) Handles AxSwimLane1.LayoutEndChanging
	With AxSwimLane1
		Debug.Print( "LayoutEndChanging" )
		Debug.Print( .FormatABC("value = 15 ? `exResizeLane` : value",e.operation) )
	End With
End Sub

' LayoutStartChanging event - Occurs when the control's layout is about to be changed.
Private Sub AxSwimLane1_LayoutStartChanging(ByVal sender As System.Object, ByVal e As AxEXSWIMLANELib._ISwimLaneEvents_LayoutStartChangingEvent) Handles AxSwimLane1.LayoutStartChanging
	With AxSwimLane1
		Debug.Print( "LayoutStartChanging" )
		Debug.Print( .FormatABC("value = 15 ? `exResizeLane` : value",e.operation) )
	End With
End Sub

With AxSwimLane1
	.BeginUpdate()
	.AllowDesignHeader = EXSWIMLANELib.AllowDesignHeaderEnum.exDesignHeaderLock
	.AllowLinkControlPoint = EXSWIMLANELib.LinkControlPointEnum.exAllowChangeTo Or EXSWIMLANELib.LinkControlPointEnum.exAllowChangeFrom Or EXSWIMLANELib.LinkControlPointEnum.exEndControlPoint Or EXSWIMLANELib.LinkControlPointEnum.exStartControlPoint
	With .Elements
		.Add("Node <b>1",-64,-64)
		.Add("Node <b>2").Selected = True
		.Add("Node <b>3",64,-64)
	End With
	With .Pools.Add(-100,-100,250,160)
		.Lane(EXSWIMLANELib.LaneTypeEnum.exLaneHorizontal).Children.Count = 2
		.Lane(EXSWIMLANELib.LaneTypeEnum.exLaneVertical).Children.Count = 2
	End With
	.Links.Add(AxSwimLane1.Elements.Item(1),AxSwimLane1.Elements.Item(2),"L1")
	.EndUpdate()
	Debug.Print( "Click the pool's header to resize it" )
End With
134
exResizePoolHeader, the user resizes the header's pool from the surface
' LayoutEndChanging event - Notifies your application once the control's layout has been changed.
Private Sub AxSwimLane1_LayoutEndChanging(ByVal sender As System.Object, ByVal e As AxEXSWIMLANELib._ISwimLaneEvents_LayoutEndChangingEvent) Handles AxSwimLane1.LayoutEndChanging
	With AxSwimLane1
		Debug.Print( "LayoutEndChanging" )
		Debug.Print( .FormatABC("value = 14 ? `exResizePoolHeader` : value",e.operation) )
	End With
End Sub

' LayoutStartChanging event - Occurs when the control's layout is about to be changed.
Private Sub AxSwimLane1_LayoutStartChanging(ByVal sender As System.Object, ByVal e As AxEXSWIMLANELib._ISwimLaneEvents_LayoutStartChangingEvent) Handles AxSwimLane1.LayoutStartChanging
	With AxSwimLane1
		Debug.Print( "LayoutStartChanging" )
		Debug.Print( .FormatABC("value = 14 ? `exResizePoolHeader` : value",e.operation) )
	End With
End Sub

With AxSwimLane1
	.BeginUpdate()
	.AllowLinkControlPoint = EXSWIMLANELib.LinkControlPointEnum.exAllowChangeTo Or EXSWIMLANELib.LinkControlPointEnum.exAllowChangeFrom Or EXSWIMLANELib.LinkControlPointEnum.exEndControlPoint Or EXSWIMLANELib.LinkControlPointEnum.exStartControlPoint
	With .Elements
		.Add("Node <b>1",-64,-64)
		.Add("Node <b>2").Selected = True
		.Add("Node <b>3",64,-64)
	End With
	.Pools.Add(-100,-100,250,160)
	.Links.Add(AxSwimLane1.Elements.Item(1),AxSwimLane1.Elements.Item(2),"L1")
	.EndUpdate()
	Debug.Print( "Click the pool's header to resize it" )
End With
133
exMovePool, The user moves the pool from the surface. The AllowMovePool property specifies the keys combination to allow user to move the pool
' LayoutEndChanging event - Notifies your application once the control's layout has been changed.
Private Sub AxSwimLane1_LayoutEndChanging(ByVal sender As System.Object, ByVal e As AxEXSWIMLANELib._ISwimLaneEvents_LayoutEndChangingEvent) Handles AxSwimLane1.LayoutEndChanging
	With AxSwimLane1
		Debug.Print( "LayoutEndChanging" )
		Debug.Print( .FormatABC("value = 13 ? `exMovePool` : value",e.operation) )
	End With
End Sub

' LayoutStartChanging event - Occurs when the control's layout is about to be changed.
Private Sub AxSwimLane1_LayoutStartChanging(ByVal sender As System.Object, ByVal e As AxEXSWIMLANELib._ISwimLaneEvents_LayoutStartChangingEvent) Handles AxSwimLane1.LayoutStartChanging
	With AxSwimLane1
		Debug.Print( "LayoutStartChanging" )
		Debug.Print( .FormatABC("value = 13 ? `exMovePool` : value",e.operation) )
	End With
End Sub

With AxSwimLane1
	.BeginUpdate()
	.AllowLinkControlPoint = EXSWIMLANELib.LinkControlPointEnum.exAllowChangeTo Or EXSWIMLANELib.LinkControlPointEnum.exAllowChangeFrom Or EXSWIMLANELib.LinkControlPointEnum.exEndControlPoint Or EXSWIMLANELib.LinkControlPointEnum.exStartControlPoint
	With .Elements
		.Add("Node <b>1",-64,-64)
		.Add("Node <b>2").Selected = True
		.Add("Node <b>3",64,-64)
	End With
	.Pools.Add(-100,-100,250,160)
	.Links.Add(AxSwimLane1.Elements.Item(1),AxSwimLane1.Elements.Item(2),"L1")
	.EndUpdate()
	Debug.Print( "Click a pool and drag to reposition it" )
End With
132
exResizePool, The user resizes the pool from the surface. The AllowResizePool property specifies the keys combination to allow user to resize the pool
' LayoutEndChanging event - Notifies your application once the control's layout has been changed.
Private Sub AxSwimLane1_LayoutEndChanging(ByVal sender As System.Object, ByVal e As AxEXSWIMLANELib._ISwimLaneEvents_LayoutEndChangingEvent) Handles AxSwimLane1.LayoutEndChanging
	With AxSwimLane1
		Debug.Print( "LayoutEndChanging" )
		Debug.Print( .FormatABC("value = 12 ? `exResizePool` : value",e.operation) )
	End With
End Sub

' LayoutStartChanging event - Occurs when the control's layout is about to be changed.
Private Sub AxSwimLane1_LayoutStartChanging(ByVal sender As System.Object, ByVal e As AxEXSWIMLANELib._ISwimLaneEvents_LayoutStartChangingEvent) Handles AxSwimLane1.LayoutStartChanging
	With AxSwimLane1
		Debug.Print( "LayoutStartChanging" )
		Debug.Print( .FormatABC("value = 12 ? `exResizePool` : value",e.operation) )
	End With
End Sub

With AxSwimLane1
	.BeginUpdate()
	.AllowLinkControlPoint = EXSWIMLANELib.LinkControlPointEnum.exAllowChangeTo Or EXSWIMLANELib.LinkControlPointEnum.exAllowChangeFrom Or EXSWIMLANELib.LinkControlPointEnum.exEndControlPoint Or EXSWIMLANELib.LinkControlPointEnum.exStartControlPoint
	With .Elements
		.Add("Node <b>1",-64,-64)
		.Add("Node <b>2").Selected = True
		.Add("Node <b>3",64,-64)
	End With
	.Pools.Add(-100,-100,250,160)
	.Links.Add(AxSwimLane1.Elements.Item(1),AxSwimLane1.Elements.Item(2),"L1")
	.EndUpdate()
	Debug.Print( "Resize a pool" )
End With
131
exCreatePool, The user creates pools on the surface. The AllowCreatePool property specifies the keys combination to allow user to create pools on the surface
' LayoutEndChanging event - Notifies your application once the control's layout has been changed.
Private Sub AxSwimLane1_LayoutEndChanging(ByVal sender As System.Object, ByVal e As AxEXSWIMLANELib._ISwimLaneEvents_LayoutEndChangingEvent) Handles AxSwimLane1.LayoutEndChanging
	With AxSwimLane1
		Debug.Print( "LayoutEndChanging" )
		Debug.Print( .FormatABC("value = 11 ? `exCreatePool` : value",e.operation) )
	End With
End Sub

' LayoutStartChanging event - Occurs when the control's layout is about to be changed.
Private Sub AxSwimLane1_LayoutStartChanging(ByVal sender As System.Object, ByVal e As AxEXSWIMLANELib._ISwimLaneEvents_LayoutStartChangingEvent) Handles AxSwimLane1.LayoutStartChanging
	With AxSwimLane1
		Debug.Print( "LayoutStartChanging" )
		Debug.Print( .FormatABC("value = 11 ? `exCreatePool` : value",e.operation) )
	End With
End Sub

With AxSwimLane1
	.BeginUpdate()
	.AllowLinkControlPoint = EXSWIMLANELib.LinkControlPointEnum.exAllowChangeTo Or EXSWIMLANELib.LinkControlPointEnum.exAllowChangeFrom Or EXSWIMLANELib.LinkControlPointEnum.exEndControlPoint Or EXSWIMLANELib.LinkControlPointEnum.exStartControlPoint
	With .Elements
		.Add("Node <b>1",-64,-64)
		.Add("Node <b>2").Selected = True
		.Add("Node <b>3",64,-64)
	End With
	.Pools.Add(-100,-100,250,160)
	.Links.Add(AxSwimLane1.Elements.Item(1),AxSwimLane1.Elements.Item(2),"L1")
	.EndUpdate()
	Debug.Print( "Hold SHIFT, double-click on the surface, and immediately drag to a new position to create a new pool" )
End With
130
exDesignMode, The user changes the surface's design mode. The exDesignMode operation occurs, when the user selects a new design-mode, from the control's toolbar.
' LayoutEndChanging event - Notifies your application once the control's layout has been changed.
Private Sub AxSwimLane1_LayoutEndChanging(ByVal sender As System.Object, ByVal e As AxEXSWIMLANELib._ISwimLaneEvents_LayoutEndChangingEvent) Handles AxSwimLane1.LayoutEndChanging
	With AxSwimLane1
		Debug.Print( "LayoutEndChanging" )
		Debug.Print( .FormatABC("value = 10 ? `exDesignMode` : value",e.operation) )
	End With
End Sub

' LayoutStartChanging event - Occurs when the control's layout is about to be changed.
Private Sub AxSwimLane1_LayoutStartChanging(ByVal sender As System.Object, ByVal e As AxEXSWIMLANELib._ISwimLaneEvents_LayoutStartChangingEvent) Handles AxSwimLane1.LayoutStartChanging
	With AxSwimLane1
		Debug.Print( "LayoutStartChanging" )
		Debug.Print( .FormatABC("value = 10 ? `exDesignMode` : value",e.operation) )
	End With
End Sub

With AxSwimLane1
	.BeginUpdate()
	.AllowLinkControlPoint = EXSWIMLANELib.LinkControlPointEnum.exAllowChangeTo Or EXSWIMLANELib.LinkControlPointEnum.exAllowChangeFrom Or EXSWIMLANELib.LinkControlPointEnum.exEndControlPoint Or EXSWIMLANELib.LinkControlPointEnum.exStartControlPoint
	With .Elements
		.Add("Node <b>1",-64,-64)
		.Add("Node <b>2").Selected = True
		.Add("Node <b>3",64,-64)
	End With
	.Pools.Add(-100,-100,250,160)
	.Links.Add(AxSwimLane1.Elements.Item(1),AxSwimLane1.Elements.Item(2),"L1")
	.EndUpdate()
	Debug.Print( "Click the Design Menu and select one of the options" )
End With
129
exUndo, An Undo operation is performed (CTR + Z), exRedo, A Redo operation is performed (CTR + Y). exUndoRedoUpdate, The Undo/Redo queue is updated
' LayoutEndChanging event - Notifies your application once the control's layout has been changed.
Private Sub AxSwimLane1_LayoutEndChanging(ByVal sender As System.Object, ByVal e As AxEXSWIMLANELib._ISwimLaneEvents_LayoutEndChangingEvent) Handles AxSwimLane1.LayoutEndChanging
	With AxSwimLane1
		Debug.Print( "LayoutEndChanging" )
		Debug.Print( .FormatABC("value case (default:value;32:`exUndoRedoUpdate`;33:`exUndo`;34:`exRedo`)",e.operation) )
	End With
End Sub

' LayoutStartChanging event - Occurs when the control's layout is about to be changed.
Private Sub AxSwimLane1_LayoutStartChanging(ByVal sender As System.Object, ByVal e As AxEXSWIMLANELib._ISwimLaneEvents_LayoutStartChangingEvent) Handles AxSwimLane1.LayoutStartChanging
	With AxSwimLane1
		Debug.Print( "LayoutStartChanging" )
		Debug.Print( .FormatABC("value case (default:value;32:`exUndoRedoUpdate`;33:`exUndo`;34:`exRedo`)",e.operation) )
	End With
End Sub

With AxSwimLane1
	.BeginUpdate()
	.AllowUndoRedo = True
	.AllowLinkControlPoint = EXSWIMLANELib.LinkControlPointEnum.exAllowChangeTo Or EXSWIMLANELib.LinkControlPointEnum.exAllowChangeFrom Or EXSWIMLANELib.LinkControlPointEnum.exEndControlPoint Or EXSWIMLANELib.LinkControlPointEnum.exStartControlPoint
	With .Elements
		.Add("Node <b>1",-64,-64)
		.Add("Node <b>2")
		.Add("Node <b>3",64,-64)
	End With
	.Pools.Add(-100,-100,250,160)
	.Links.Add(AxSwimLane1.Elements.Item(1),AxSwimLane1.Elements.Item(2),"L1")
	.EndUpdate()
	Debug.Print( "Press CTRL+Z to Undo, CTRL+Y to Redo" )
End With
128
exLinkObjects, the user creates an element on the surface. The AllowLinkObjects property specifies the keys combination to allow user to link elements on the surface
' LayoutEndChanging event - Notifies your application once the control's layout has been changed.
Private Sub AxSwimLane1_LayoutEndChanging(ByVal sender As System.Object, ByVal e As AxEXSWIMLANELib._ISwimLaneEvents_LayoutEndChangingEvent) Handles AxSwimLane1.LayoutEndChanging
	With AxSwimLane1
		Debug.Print( "LayoutEndChanging" )
		Debug.Print( .FormatABC("value = 9 ? `exLinkObjects` : value",e.operation) )
	End With
End Sub

' LayoutStartChanging event - Occurs when the control's layout is about to be changed.
Private Sub AxSwimLane1_LayoutStartChanging(ByVal sender As System.Object, ByVal e As AxEXSWIMLANELib._ISwimLaneEvents_LayoutStartChangingEvent) Handles AxSwimLane1.LayoutStartChanging
	With AxSwimLane1
		Debug.Print( "LayoutStartChanging" )
		Debug.Print( .FormatABC("value = 9 ? `exLinkObjects` : value",e.operation) )
	End With
End Sub

With AxSwimLane1
	.BeginUpdate()
	With .Elements
		.Add("Node <b>1",-64,-64)
		.Add("Node <b>2")
		.Add("Node <b>3",64,-64)
	End With
	.EndUpdate()
	Debug.Print( "Hold SHIFT, click an element, and drag to another element to create a link between them" )
End With
127
exEditObject, the user edits the element's caption
' Click event - Occurs when the user presses and then releases the left mouse button over the control.
Private Sub AxSwimLane1_ClickEvent(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles AxSwimLane1.ClickEvent
	' ElementFromPoint(-1,-1).Edit(0)
End Sub

' LayoutEndChanging event - Notifies your application once the control's layout has been changed.
Private Sub AxSwimLane1_LayoutEndChanging(ByVal sender As System.Object, ByVal e As AxEXSWIMLANELib._ISwimLaneEvents_LayoutEndChangingEvent) Handles AxSwimLane1.LayoutEndChanging
	With AxSwimLane1
		Debug.Print( "LayoutEndChanging" )
		Debug.Print( .FormatABC("value = 8 ? `exEditObject` : value",e.operation) )
	End With
End Sub

' LayoutStartChanging event - Occurs when the control's layout is about to be changed.
Private Sub AxSwimLane1_LayoutStartChanging(ByVal sender As System.Object, ByVal e As AxEXSWIMLANELib._ISwimLaneEvents_LayoutStartChangingEvent) Handles AxSwimLane1.LayoutStartChanging
	With AxSwimLane1
		Debug.Print( "LayoutStartChanging" )
		Debug.Print( .FormatABC("value = 8 ? `exEditObject` : value",e.operation) )
	End With
End Sub

With AxSwimLane1
	.BeginUpdate()
	.AllowLinkControlPoint = EXSWIMLANELib.LinkControlPointEnum.exAllowChangeTo Or EXSWIMLANELib.LinkControlPointEnum.exAllowChangeFrom Or EXSWIMLANELib.LinkControlPointEnum.exEndControlPoint Or EXSWIMLANELib.LinkControlPointEnum.exStartControlPoint
	With .Elements
		.Add("Node <b>1",-64,-64)
		.Add("Node <b>2")
		.Add("Node <b>3",64,-64)
	End With
	.Pools.Add(-100,-100,250,160)
	.Links.Add(AxSwimLane1.Elements.Item(1),AxSwimLane1.Elements.Item(2),"L1")
	.EndUpdate()
	Debug.Print( "Click an element to edit its caption" )
End With
126
exCreateObject, the user creates an element on the surface. The AllowCreateObject property specifies the keys combination to allow user to create elements on the surface
' LayoutEndChanging event - Notifies your application once the control's layout has been changed.
Private Sub AxSwimLane1_LayoutEndChanging(ByVal sender As System.Object, ByVal e As AxEXSWIMLANELib._ISwimLaneEvents_LayoutEndChangingEvent) Handles AxSwimLane1.LayoutEndChanging
	With AxSwimLane1
		Debug.Print( "LayoutEndChanging" )
		Debug.Print( .FormatABC("value = 7 ? `exCreateObject` : value",e.operation) )
	End With
End Sub

' LayoutStartChanging event - Occurs when the control's layout is about to be changed.
Private Sub AxSwimLane1_LayoutStartChanging(ByVal sender As System.Object, ByVal e As AxEXSWIMLANELib._ISwimLaneEvents_LayoutStartChangingEvent) Handles AxSwimLane1.LayoutStartChanging
	With AxSwimLane1
		Debug.Print( "LayoutStartChanging" )
		Debug.Print( .FormatABC("value = 7 ? `exCreateObject` : value",e.operation) )
	End With
End Sub

With AxSwimLane1
	.BeginUpdate()
	.AllowLinkControlPoint = EXSWIMLANELib.LinkControlPointEnum.exAllowChangeTo Or EXSWIMLANELib.LinkControlPointEnum.exAllowChangeFrom Or EXSWIMLANELib.LinkControlPointEnum.exEndControlPoint Or EXSWIMLANELib.LinkControlPointEnum.exStartControlPoint
	With .Elements
		.Add("Node <b>1",-64,-64)
		.Add("Node <b>2").Selected = True
		.Add("Node <b>3",64,-64)
	End With
	.Pools.Add(-100,-100,250,160)
	.Links.Add(AxSwimLane1.Elements.Item(1),AxSwimLane1.Elements.Item(2),"L1")
	.EndUpdate()
	Debug.Print( "Double-click on the surface and immediately drag to a new position to create an element" )
End With
125
exSelectNothing, the user clicks an empty zone of the surface. The AllowSelectNothing property specifies the keys combination to allow user to select nothing on the surface
' LayoutEndChanging event - Notifies your application once the control's layout has been changed.
Private Sub AxSwimLane1_LayoutEndChanging(ByVal sender As System.Object, ByVal e As AxEXSWIMLANELib._ISwimLaneEvents_LayoutEndChangingEvent) Handles AxSwimLane1.LayoutEndChanging
	With AxSwimLane1
		Debug.Print( "LayoutEndChanging" )
		Debug.Print( .FormatABC("value = 6 ? `exSelectNothing` : value",e.operation) )
	End With
End Sub

' LayoutStartChanging event - Occurs when the control's layout is about to be changed.
Private Sub AxSwimLane1_LayoutStartChanging(ByVal sender As System.Object, ByVal e As AxEXSWIMLANELib._ISwimLaneEvents_LayoutStartChangingEvent) Handles AxSwimLane1.LayoutStartChanging
	With AxSwimLane1
		Debug.Print( "LayoutStartChanging" )
		Debug.Print( .FormatABC("value = 6 ? `exSelectNothing` : value",e.operation) )
	End With
End Sub

With AxSwimLane1
	.BeginUpdate()
	.AllowSelectNothing = True
	.AllowLinkControlPoint = EXSWIMLANELib.LinkControlPointEnum.exAllowChangeTo Or EXSWIMLANELib.LinkControlPointEnum.exAllowChangeFrom Or EXSWIMLANELib.LinkControlPointEnum.exEndControlPoint Or EXSWIMLANELib.LinkControlPointEnum.exStartControlPoint
	With .Elements
		.Add("Node <b>1",-64,-64)
		.Add("Node <b>2").Selected = True
		.Add("Node <b>3",64,-64)
	End With
	.Pools.Add(-100,-100,250,160)
	.Links.Add(AxSwimLane1.Elements.Item(1),AxSwimLane1.Elements.Item(2),"L1")
	.EndUpdate()
	Debug.Print( "Select an element, and then click outside to select nothing" )
End With
124
exSelectElement, the user clicks the object to get it selected. The AllowSelectObject property specifies the keys combination to allow user to select the object
' LayoutEndChanging event - Notifies your application once the control's layout has been changed.
Private Sub AxSwimLane1_LayoutEndChanging(ByVal sender As System.Object, ByVal e As AxEXSWIMLANELib._ISwimLaneEvents_LayoutEndChangingEvent) Handles AxSwimLane1.LayoutEndChanging
	With AxSwimLane1
		Debug.Print( "LayoutEndChanging" )
		Debug.Print( .FormatABC("value = 5 ? `exSelectElement` : value",e.operation) )
	End With
End Sub

' LayoutStartChanging event - Occurs when the control's layout is about to be changed.
Private Sub AxSwimLane1_LayoutStartChanging(ByVal sender As System.Object, ByVal e As AxEXSWIMLANELib._ISwimLaneEvents_LayoutStartChangingEvent) Handles AxSwimLane1.LayoutStartChanging
	With AxSwimLane1
		Debug.Print( "LayoutStartChanging" )
		Debug.Print( .FormatABC("value = 5 ? `exSelectElement` : value",e.operation) )
	End With
End Sub

With AxSwimLane1
	.BeginUpdate()
	.AllowLinkControlPoint = EXSWIMLANELib.LinkControlPointEnum.exAllowChangeTo Or EXSWIMLANELib.LinkControlPointEnum.exAllowChangeFrom Or EXSWIMLANELib.LinkControlPointEnum.exEndControlPoint Or EXSWIMLANELib.LinkControlPointEnum.exStartControlPoint
	With .Elements
		.Add("Node <b>1",-64,-64)
		.Add("Node <b>2")
		.Add("Node <b>3",64,-64)
	End With
	.Pools.Add(-100,-100,250,160)
	.Links.Add(AxSwimLane1.Elements.Item(1),AxSwimLane1.Elements.Item(2),"L1")
	.EndUpdate()
	Debug.Print( "Hold ALT and click, then drag to select elements within the drawn rectangle. Click an element to select it. CTRL + CLick to uns" & _
	"elect it" )
End With
123
exMoveElement, the user moves the object. The AllowMoveObject property specifies the keys combination to allow user to move the object
' LayoutEndChanging event - Notifies your application once the control's layout has been changed.
Private Sub AxSwimLane1_LayoutEndChanging(ByVal sender As System.Object, ByVal e As AxEXSWIMLANELib._ISwimLaneEvents_LayoutEndChangingEvent) Handles AxSwimLane1.LayoutEndChanging
	With AxSwimLane1
		Debug.Print( "LayoutEndChanging" )
		Debug.Print( .FormatABC("value = 4 ? `exMoveElement` : value",e.operation) )
	End With
End Sub

' LayoutStartChanging event - Occurs when the control's layout is about to be changed.
Private Sub AxSwimLane1_LayoutStartChanging(ByVal sender As System.Object, ByVal e As AxEXSWIMLANELib._ISwimLaneEvents_LayoutStartChangingEvent) Handles AxSwimLane1.LayoutStartChanging
	With AxSwimLane1
		Debug.Print( "LayoutStartChanging" )
		Debug.Print( .FormatABC("value = 4 ? `exMoveElement` : value",e.operation) )
	End With
End Sub

With AxSwimLane1
	.BeginUpdate()
	.AllowLinkControlPoint = EXSWIMLANELib.LinkControlPointEnum.exAllowChangeTo Or EXSWIMLANELib.LinkControlPointEnum.exAllowChangeFrom Or EXSWIMLANELib.LinkControlPointEnum.exEndControlPoint Or EXSWIMLANELib.LinkControlPointEnum.exStartControlPoint
	With .Elements
		.Add("Node <b>1",-64,-64)
		.Add("Node <b>2")
		.Add("Node <b>3",64,-64)
	End With
	.Pools.Add(-100,-100,250,160)
	.Links.Add(AxSwimLane1.Elements.Item(1),AxSwimLane1.Elements.Item(2),"L1")
	.EndUpdate()
	Debug.Print( "Move an element" )
End With
122
exResizeElement, the user resizes the object. The AllowResizeObject property specifies the keys combination to allow user to resize the object
' LayoutEndChanging event - Notifies your application once the control's layout has been changed.
Private Sub AxSwimLane1_LayoutEndChanging(ByVal sender As System.Object, ByVal e As AxEXSWIMLANELib._ISwimLaneEvents_LayoutEndChangingEvent) Handles AxSwimLane1.LayoutEndChanging
	With AxSwimLane1
		Debug.Print( "LayoutEndChanging" )
		Debug.Print( .FormatABC("value = 3 ? `exResizeElement` : value",e.operation) )
	End With
End Sub

' LayoutStartChanging event - Occurs when the control's layout is about to be changed.
Private Sub AxSwimLane1_LayoutStartChanging(ByVal sender As System.Object, ByVal e As AxEXSWIMLANELib._ISwimLaneEvents_LayoutStartChangingEvent) Handles AxSwimLane1.LayoutStartChanging
	With AxSwimLane1
		Debug.Print( "LayoutStartChanging" )
		Debug.Print( .FormatABC("value = 3 ? `exResizeElement` : value",e.operation) )
	End With
End Sub

With AxSwimLane1
	.BeginUpdate()
	.AllowLinkControlPoint = EXSWIMLANELib.LinkControlPointEnum.exAllowChangeTo Or EXSWIMLANELib.LinkControlPointEnum.exAllowChangeFrom Or EXSWIMLANELib.LinkControlPointEnum.exEndControlPoint Or EXSWIMLANELib.LinkControlPointEnum.exStartControlPoint
	With .Elements
		.Add("Node <b>1",-64,-64).AutoSize = False
		.Add("Node <b>2").AutoSize = False
		.Add("Node <b>3",64,-64).AutoSize = False
	End With
	.Pools.Add(-100,-100,250,160)
	.Links.Add(AxSwimLane1.Elements.Item(1),AxSwimLane1.Elements.Item(2),"L1")
	.EndUpdate()
	Debug.Print( "Resize an element" )
End With
121
exSurfaceHome, the user clicks the Home button on the control's toolbar, so the surface is restored to original position. The Home method has the same effect
' LayoutEndChanging event - Notifies your application once the control's layout has been changed.
Private Sub AxSwimLane1_LayoutEndChanging(ByVal sender As System.Object, ByVal e As AxEXSWIMLANELib._ISwimLaneEvents_LayoutEndChangingEvent) Handles AxSwimLane1.LayoutEndChanging
	With AxSwimLane1
		Debug.Print( "LayoutEndChanging" )
		Debug.Print( .FormatABC("value = 2 ? `exSurfaceHome` : value",e.operation) )
	End With
End Sub

' LayoutStartChanging event - Occurs when the control's layout is about to be changed.
Private Sub AxSwimLane1_LayoutStartChanging(ByVal sender As System.Object, ByVal e As AxEXSWIMLANELib._ISwimLaneEvents_LayoutStartChangingEvent) Handles AxSwimLane1.LayoutStartChanging
	With AxSwimLane1
		Debug.Print( "LayoutStartChanging" )
		Debug.Print( .FormatABC("value = 2 ? `exSurfaceHome` : value",e.operation) )
	End With
End Sub

With AxSwimLane1
	.BeginUpdate()
	.AllowLinkControlPoint = EXSWIMLANELib.LinkControlPointEnum.exAllowChangeTo Or EXSWIMLANELib.LinkControlPointEnum.exAllowChangeFrom Or EXSWIMLANELib.LinkControlPointEnum.exEndControlPoint Or EXSWIMLANELib.LinkControlPointEnum.exStartControlPoint
	With .Elements
		.Add("Node <b>1",-64,-64)
		.Add("Node <b>2")
		.Add("Node <b>3",64,-64)
	End With
	.Pools.Add(-100,-100,250,160)
	.Links.Add(AxSwimLane1.Elements.Item(1),AxSwimLane1.Elements.Item(2),"L1")
	.EndUpdate()
	Debug.Print( "Click the Home button" )
End With
120
exSurfaceZoom, the user magnifies or shrinks the surface. The AllowZoomSurface property specifies the keys combination to allow user to zoom the surface
' LayoutEndChanging event - Notifies your application once the control's layout has been changed.
Private Sub AxSwimLane1_LayoutEndChanging(ByVal sender As System.Object, ByVal e As AxEXSWIMLANELib._ISwimLaneEvents_LayoutEndChangingEvent) Handles AxSwimLane1.LayoutEndChanging
	With AxSwimLane1
		Debug.Print( "LayoutEndChanging" )
		Debug.Print( .FormatABC("value = 1 ? `exSurfaceZoom` : value",e.operation) )
	End With
End Sub

' LayoutStartChanging event - Occurs when the control's layout is about to be changed.
Private Sub AxSwimLane1_LayoutStartChanging(ByVal sender As System.Object, ByVal e As AxEXSWIMLANELib._ISwimLaneEvents_LayoutStartChangingEvent) Handles AxSwimLane1.LayoutStartChanging
	With AxSwimLane1
		Debug.Print( "LayoutStartChanging" )
		Debug.Print( .FormatABC("value = 1 ? `exSurfaceZoom` : value",e.operation) )
	End With
End Sub

With AxSwimLane1
	.BeginUpdate()
	.AllowLinkControlPoint = EXSWIMLANELib.LinkControlPointEnum.exAllowChangeTo Or EXSWIMLANELib.LinkControlPointEnum.exAllowChangeFrom Or EXSWIMLANELib.LinkControlPointEnum.exEndControlPoint Or EXSWIMLANELib.LinkControlPointEnum.exStartControlPoint
	With .Elements
		.Add("Node <b>1",-64,-64)
		.Add("Node <b>2")
		.Add("Node <b>3",64,-64)
	End With
	.Pools.Add(-100,-100,250,160)
	.Links.Add(AxSwimLane1.Elements.Item(1),AxSwimLane1.Elements.Item(2),"L1")
	.EndUpdate()
	Debug.Print( "Click and drag the surface to reposition it" )
End With
119
exSurfaceMove, the user scrolls or moves the surface. The AllowMoveSurface property specifies the keys combination to allow user to move / scroll the surface
' LayoutEndChanging event - Notifies your application once the control's layout has been changed.
Private Sub AxSwimLane1_LayoutEndChanging(ByVal sender As System.Object, ByVal e As AxEXSWIMLANELib._ISwimLaneEvents_LayoutEndChangingEvent) Handles AxSwimLane1.LayoutEndChanging
	With AxSwimLane1
		Debug.Print( "LayoutEndChanging" )
		Debug.Print( .FormatABC("value = 0 ? `exSurfaceMove` : value",e.operation) )
	End With
End Sub

' LayoutStartChanging event - Occurs when the control's layout is about to be changed.
Private Sub AxSwimLane1_LayoutStartChanging(ByVal sender As System.Object, ByVal e As AxEXSWIMLANELib._ISwimLaneEvents_LayoutStartChangingEvent) Handles AxSwimLane1.LayoutStartChanging
	With AxSwimLane1
		Debug.Print( "LayoutStartChanging" )
		Debug.Print( .FormatABC("value = 0 ? `exSurfaceMove` : value",e.operation) )
	End With
End Sub

With AxSwimLane1
	.BeginUpdate()
	.AllowLinkControlPoint = EXSWIMLANELib.LinkControlPointEnum.exAllowChangeTo Or EXSWIMLANELib.LinkControlPointEnum.exAllowChangeFrom Or EXSWIMLANELib.LinkControlPointEnum.exEndControlPoint Or EXSWIMLANELib.LinkControlPointEnum.exStartControlPoint
	With .Elements
		.Add("Node <b>1",-64,-64)
		.Add("Node <b>2")
		.Add("Node <b>3",64,-64)
	End With
	.Pools.Add(-100,-100,250,160)
	.Links.Add(AxSwimLane1.Elements.Item(1),AxSwimLane1.Elements.Item(2),"L1")
	.EndUpdate()
	Debug.Print( "Click and drag the surface to reposition it" )
End With
118
FormatABC method formats the A,B,C values based on the giving expression and returns the result
With AxSwimLane1
	Debug.Print( .FormatABC("value format ``",1000) )
End With
117
FreezeEvents(Freeze) method prevents firing any event. For instance, FreezeEvents(True) freezes the control's events, no no event is fired, until the FreezeEvents(False) is called
' Event event - Notifies the application once the control fires an event.
Private Sub AxSwimLane1_Event(ByVal sender As System.Object, ByVal e As AxEXSWIMLANELib._ISwimLaneEvents_EventEvent) Handles AxSwimLane1.Event
	With AxSwimLane1
		Debug.Print( .get_EventParam(-2) )
	End With
End Sub

With AxSwimLane1
	.FreezeEvents(True)
	Debug.Print( "No event is fired after FreezeEvents(True) call" )
	.BeginUpdate()
	.AllowLinkControlPoint = EXSWIMLANELib.LinkControlPointEnum.exEndControlPoint Or EXSWIMLANELib.LinkControlPointEnum.exStartControlPoint
	With .Elements
		.Add("Node <b>1",-64,-64)
		.Add("Node <b>2")
	End With
	.Pools.Add(-100,-100,250,160)
	.Links.Add(AxSwimLane1.Elements.Item(1),AxSwimLane1.Elements.Item(2),"L1")
	.EndUpdate()
End With
116
The exAllowChangeFrom(0x20)/exAllowChangeTo(0x40) flag of LinkControlPointEnum type allows the user to adjust the link's from/to element by dragging and dropping the start control point (requires the exStartControlPoint/exEndControlPoint flag)
' LayoutEndChanging event - Notifies your application once the control's layout has been changed.
Private Sub AxSwimLane1_LayoutEndChanging(ByVal sender As System.Object, ByVal e As AxEXSWIMLANELib._ISwimLaneEvents_LayoutEndChangingEvent) Handles AxSwimLane1.LayoutEndChanging
	With AxSwimLane1
		Debug.Print( "LayoutEndChanging" )
		Debug.Print( e.operation )
		Debug.Print( .FocusLink.ID )
	End With
End Sub

' LayoutStartChanging event - Occurs when the control's layout is about to be changed.
Private Sub AxSwimLane1_LayoutStartChanging(ByVal sender As System.Object, ByVal e As AxEXSWIMLANELib._ISwimLaneEvents_LayoutStartChangingEvent) Handles AxSwimLane1.LayoutStartChanging
	With AxSwimLane1
		Debug.Print( "LayoutStartChanging" )
		Debug.Print( e.operation )
		Debug.Print( .FocusLink.ID )
	End With
End Sub

With AxSwimLane1
	.BeginUpdate()
	.AllowLinkControlPoint = EXSWIMLANELib.LinkControlPointEnum.exAllowChangeTo Or EXSWIMLANELib.LinkControlPointEnum.exAllowChangeFrom Or EXSWIMLANELib.LinkControlPointEnum.exEndControlPoint Or EXSWIMLANELib.LinkControlPointEnum.exStartControlPoint
	With .Elements
		.Add("Node <b>1",-64,-64)
		.Add("Node <b>2")
		.Add("Node <b>3",64,-64)
	End With
	.Pools.Add(-100,-100,250,160)
	.Links.Add(AxSwimLane1.Elements.Item(1),AxSwimLane1.Elements.Item(2),"L1")
	.FocusLink = "L1"
	.EndUpdate()
End With
115
The LayoutStartChanging(exFocusLink)/LayoutEndChanging(exFocusLink) event notifies your application when the user focuses on a new link
' LayoutEndChanging event - Notifies your application once the control's layout has been changed.
Private Sub AxSwimLane1_LayoutEndChanging(ByVal sender As System.Object, ByVal e As AxEXSWIMLANELib._ISwimLaneEvents_LayoutEndChangingEvent) Handles AxSwimLane1.LayoutEndChanging
	With AxSwimLane1
		Debug.Print( "LayoutEndChanging" )
		Debug.Print( e.operation )
		Debug.Print( .FocusLink )
	End With
End Sub

' LayoutStartChanging event - Occurs when the control's layout is about to be changed.
Private Sub AxSwimLane1_LayoutStartChanging(ByVal sender As System.Object, ByVal e As AxEXSWIMLANELib._ISwimLaneEvents_LayoutStartChangingEvent) Handles AxSwimLane1.LayoutStartChanging
	With AxSwimLane1
		Debug.Print( "LayoutStartChanging" )
		Debug.Print( e.operation )
		Debug.Print( .FocusLink )
	End With
End Sub

With AxSwimLane1
	.BeginUpdate()
	.AllowLinkControlPoint = EXSWIMLANELib.LinkControlPointEnum.exEndControlPoint Or EXSWIMLANELib.LinkControlPointEnum.exStartControlPoint
	With .Elements
		.Add("Node <b>1",-64,-64)
		.Add("Node <b>2")
	End With
	.Pools.Add(-100,-100,250,160)
	.Links.Add(AxSwimLane1.Elements.Item(1),AxSwimLane1.Elements.Item(2),"L1")
	.EndUpdate()
End With
114
Focus a link
' LayoutEndChanging event - Notifies your application once the control's layout has been changed.
Private Sub AxSwimLane1_LayoutEndChanging(ByVal sender As System.Object, ByVal e As AxEXSWIMLANELib._ISwimLaneEvents_LayoutEndChangingEvent) Handles AxSwimLane1.LayoutEndChanging
	With AxSwimLane1
		Debug.Print( "LayoutEndChanging" )
		Debug.Print( e.operation )
	End With
End Sub

' LayoutStartChanging event - Occurs when the control's layout is about to be changed.
Private Sub AxSwimLane1_LayoutStartChanging(ByVal sender As System.Object, ByVal e As AxEXSWIMLANELib._ISwimLaneEvents_LayoutStartChangingEvent) Handles AxSwimLane1.LayoutStartChanging
	With AxSwimLane1
		Debug.Print( "LayoutStartChanging" )
		Debug.Print( e.operation )
	End With
End Sub

With AxSwimLane1
	.BeginUpdate()
	.AllowLinkControlPoint = EXSWIMLANELib.LinkControlPointEnum.exEndControlPoint Or EXSWIMLANELib.LinkControlPointEnum.exStartControlPoint
	With .Elements
		.Add("Node <b>1",-64,-64)
		.Add("Node <b>2")
	End With
	.Pools.Add(-100,-100,250,160)
	.Links.Add(AxSwimLane1.Elements.Item(1),AxSwimLane1.Elements.Item(2),"L1")
	.FocusLink = "L1"
	.EndUpdate()
End With
113
The caption is displayed on the back, so the picture overrides it. How can I place the caption on the foreground

With AxSwimLane1
	.BeginUpdate()
	.DrawPartsOrder = "extracaption,extrapicture,picture,check,caption,client"
	.set_HTMLPicture("pic1","c:\exontrol\images\sun.png")
	With .Elements.Add("<b>Element")
		.PicturesAlign = EXSWIMLANELib.ContentAlignmentEnum.exMiddleCenter
		.CaptionAlign = EXSWIMLANELib.ContentAlignmentEnum.exMiddleCenter
		.Pictures = "pic1"
	End With
	.EndUpdate()
End With
112
Expandable-caption

' AnchorClick event - Occurs when an anchor element is clicked.
Private Sub AxSwimLane1_AnchorClick(ByVal sender As System.Object, ByVal e As AxEXSWIMLANELib._ISwimLaneEvents_AnchorClickEvent) Handles AxSwimLane1.AnchorClick
	With AxSwimLane1
		Debug.Print( e.anchorID )
	End With
End Sub

With AxSwimLane1
	With .Elements.Add("<solidline> <c><b>Bank Account</b></solidline><br>+ owner: String <r><a 1;e64=gA8ABzABvABsABpABkg8JABuABlAAgAA4AAwisXjMYH0TAECM" & _
	"YAjsCMwAM4AkMGhEGOUei0Yl8bkQAOAAlsGmsSlp0h0SgkCF8DgsNhUMhEKiESkYAoMlk8phssmcCltLMNTAFOlFDlc2l0amMxjomAAjAA5AA2tMaHcfplZk1blVDqtu" & _
	"oNXjoAAEBA=>▲</a><br><solidline>+ balance: Currency = 0</solidline><br>+ deposit(amount: Currency)<r><a 2;e64=gA8ABjAA+AEC" & _
	"MwAM8DABvABshoAOQAEAAHAAGEWjEajMGNoAMoAOgANERMgAOcHAAvAEJhcEh0Qh0Tg0CmkqMMFlUuhkxiMTisXjNCjk6EwAEYAHIAG1MjY7lUsnkwh8/nUClk5gwAAE" & _
	"BA==>▲</a><br>+ withdraw(amount: Currency)")
		.ID = "Account"
		.X = -256
		.Y = -164
		.CaptionSingleLine = EXSWIMLANELib.CaptionSingleLineEnum.exCaptionBreakWrap
		.CaptionAlign = &H4
	End With
	With .Elements.Add("<solidline> <c><b>Person</b></solidline><br>+ name: String <r><a 1;e64=gA8ABzABvABsABpABkg8JABuABlAAgAA4AAwisXjMYH0TAECMYAjsCMw" & _
	"AM4AkMGhEGOUei0Yl8bkQAOAAlsGmsSlp0h0SgkCF8DgsNhUMhEKiESkYAoMlk8phssmcCltLMNTAFOlFDlc2l0amMxjomAAjAA5AA2tMaHcfplZk1blVDqtuoNXjoAA" & _
	"EBA=>▲</a><br><solidline># birth: Date</solidline><br>+ getCurrentAge(): int<r><a 2;e64=gA8ABjAA+AECMwAM8DABvABshoAOQAEAAH" & _
	"AAGEWjEajMGNoAMoAOgANERMgAOcHAAvAEJhcEh0Qh0Tg0CmkqMMFlUuhkxiMTisXjNCjk6EwAEYAHIAG1MjY7lUsnkwh8/nUClk5gwAAEBA==>▲</a>")
		.ID = "Person"
		.Y = -164
		.CaptionSingleLine = EXSWIMLANELib.CaptionSingleLineEnum.exCaptionBreakWrap
	End With
	With .Elements.Add("<solidline> <c><b>Student</b></solidline><br><solidline>+ classes: List<Course> <r><a 1;e64=gA8ABzABvABsABpABkg8JABuABlAA+AAgAE" & _
	"CMcTi4AMwAM4AjMGhEGOUVAA4AAwk8plcqihwAElg0wiUlOkOiUEgQvgcFhsKhkIhUQiUUnccj0gn0jmMagUlowAMNOpEfkMNkkmlEqrctjQmAAjAA5AA2sssHcbnkdq" & _
	"1Ln1QtVSjQAAEBA==>▲</a></solidline><br>- attend(class: Course)<r><a 2;e64=gA8ABjAA+AECMwAM8DABvABshoAOQAEAAHAAGEWjEajMGNoA" & _
	"MoAOgANERMgAOcHAAvAEJhcEh0Qh0Tg0CmkqMMFlUuhkxiMTisXjNCjk6EwAEYAHIAG1MjY7lUsnkwh8/nUClk5gwAAEBA==>▲</a><br>- sleep()")
		.ID = "Student"
		.Y = -64
		.CaptionSingleLine = EXSWIMLANELib.CaptionSingleLineEnum.exCaptionBreakWrap
	End With
	With .Links.Add(AxSwimLane1.Elements.Item("Account"),AxSwimLane1.Elements.Item("Student"))
		.Caption = "<fgcolor A0A0A0><solidline 808080> <c><b>Link</b></solidline><br># count: number <r><a ;exp=12992>➤</a>"
	End With
End With
111
Expandable-caption

With AxSwimLane1
	With .Elements.Add("<solidline><b>Header</b></solidline><br>Line1<r><a ;exp=show lines>+</a><br>Line2<br>Line3")
		.CaptionSingleLine = EXSWIMLANELib.CaptionSingleLineEnum.exCaptionBreakWrap
	End With
End With
110
Draws a frame arround the link's arrow

With AxSwimLane1
	.BeginUpdate()
	.AllowLinkControlPoint = &Hffffff80 Or EXSWIMLANELib.LinkControlPointEnum.exAllowChangeTo Or EXSWIMLANELib.LinkControlPointEnum.exAllowChangeFrom Or EXSWIMLANELib.LinkControlPointEnum.exOrthoArrange Or EXSWIMLANELib.LinkControlPointEnum.exMiddleControlPoint Or EXSWIMLANELib.LinkControlPointEnum.exControlPoint Or EXSWIMLANELib.LinkControlPointEnum.exEndControlPoint Or EXSWIMLANELib.LinkControlPointEnum.exStartControlPoint
	With .Elements
		.Add("Element <sha ;;0>A")
		.Add("Element <sha ;;0>B",164,64)
		.Add("Element <sha ;;0>B",0,132)
	End With
	With .Links
		.Add(AxSwimLane1.Elements.Item(1),AxSwimLane1.Elements.Item(2)).CustomPath = "0.5,0.25,0.5,.75"
		.Add(AxSwimLane1.Elements.Item(3),AxSwimLane1.Elements.Item(2)).CustomPath = "0.5,0.25,0.5,.75"
		With .Add(AxSwimLane1.Elements.Item(3),AxSwimLane1.Elements.Item(1))
			.ShowLinkType = EXSWIMLANELib.ShowLinkTypeEnum.exLinkRound
			.StartPos = EXSWIMLANELib.AlignmentEnum.LeftAlignment
			.ArrowSize = 8
			.ArrowColor = RGB(255,255,255)
			.ArrowFrameColor = RGB(0,0,0)
		End With
	End With
	.FitToClient()
	.EndUpdate()
End With
109
Draws a frame arround the arrow for all links

With AxSwimLane1
	.BeginUpdate()
	.AllowLinkControlPoint = &Hffffff80 Or EXSWIMLANELib.LinkControlPointEnum.exAllowChangeTo Or EXSWIMLANELib.LinkControlPointEnum.exAllowChangeFrom Or EXSWIMLANELib.LinkControlPointEnum.exOrthoArrange Or EXSWIMLANELib.LinkControlPointEnum.exMiddleControlPoint Or EXSWIMLANELib.LinkControlPointEnum.exControlPoint Or EXSWIMLANELib.LinkControlPointEnum.exEndControlPoint Or EXSWIMLANELib.LinkControlPointEnum.exStartControlPoint
	.LinksArrowSize = 8
	.LinksArrowColor = RGB(255,255,255)
	.LinksArrowFrameColor = RGB(0,0,0)
	With .Elements
		.Add("Element <sha ;;0>A")
		.Add("Element <sha ;;0>B",164,64)
		.Add("Element <sha ;;0>B",0,132)
	End With
	With .Links
		.Add(AxSwimLane1.Elements.Item(1),AxSwimLane1.Elements.Item(2)).CustomPath = "0.5,0.25,0.5,.75"
		.Add(AxSwimLane1.Elements.Item(3),AxSwimLane1.Elements.Item(2)).CustomPath = "0.5,0.25,0.5,.75"
		With .Add(AxSwimLane1.Elements.Item(3),AxSwimLane1.Elements.Item(1))
			.ShowLinkType = EXSWIMLANELib.ShowLinkTypeEnum.exLinkRound
			.StartPos = EXSWIMLANELib.AlignmentEnum.LeftAlignment
		End With
	End With
	.FitToClient()
	.EndUpdate()
End With
108
Change the size to display the arrow of the link

With AxSwimLane1
	.BeginUpdate()
	.AllowLinkControlPoint = &Hffffff80 Or EXSWIMLANELib.LinkControlPointEnum.exAllowChangeTo Or EXSWIMLANELib.LinkControlPointEnum.exAllowChangeFrom Or EXSWIMLANELib.LinkControlPointEnum.exOrthoArrange Or EXSWIMLANELib.LinkControlPointEnum.exMiddleControlPoint Or EXSWIMLANELib.LinkControlPointEnum.exControlPoint Or EXSWIMLANELib.LinkControlPointEnum.exEndControlPoint Or EXSWIMLANELib.LinkControlPointEnum.exStartControlPoint
	With .Elements
		.Add("Element <sha ;;0>A")
		.Add("Element <sha ;;0>B",164,64)
		.Add("Element <sha ;;0>B",0,132)
	End With
	With .Links
		.Add(AxSwimLane1.Elements.Item(1),AxSwimLane1.Elements.Item(2)).CustomPath = "0.5,0.25,0.5,.75"
		.Add(AxSwimLane1.Elements.Item(3),AxSwimLane1.Elements.Item(2)).CustomPath = "0.5,0.25,0.5,.75"
		With .Add(AxSwimLane1.Elements.Item(3),AxSwimLane1.Elements.Item(1))
			.ShowLinkType = EXSWIMLANELib.ShowLinkTypeEnum.exLinkRound
			.StartPos = EXSWIMLANELib.AlignmentEnum.LeftAlignment
			.ArrowSize = 8
		End With
	End With
	.FitToClient()
	.EndUpdate()
End With
107
Change the size to display the arrows for all links

With AxSwimLane1
	.BeginUpdate()
	.AllowLinkControlPoint = &Hffffff80 Or EXSWIMLANELib.LinkControlPointEnum.exAllowChangeTo Or EXSWIMLANELib.LinkControlPointEnum.exAllowChangeFrom Or EXSWIMLANELib.LinkControlPointEnum.exOrthoArrange Or EXSWIMLANELib.LinkControlPointEnum.exMiddleControlPoint Or EXSWIMLANELib.LinkControlPointEnum.exControlPoint Or EXSWIMLANELib.LinkControlPointEnum.exEndControlPoint Or EXSWIMLANELib.LinkControlPointEnum.exStartControlPoint
	.LinksArrowSize = 8
	With .Elements
		.Add("Element <sha ;;0>A")
		.Add("Element <sha ;;0>B",164,64)
		.Add("Element <sha ;;0>B",0,132)
	End With
	With .Links
		.Add(AxSwimLane1.Elements.Item(1),AxSwimLane1.Elements.Item(2)).CustomPath = "0.5,0.25,0.5,.75"
		.Add(AxSwimLane1.Elements.Item(3),AxSwimLane1.Elements.Item(2)).CustomPath = "0.5,0.25,0.5,.75"
		With .Add(AxSwimLane1.Elements.Item(3),AxSwimLane1.Elements.Item(1))
			.ShowLinkType = EXSWIMLANELib.ShowLinkTypeEnum.exLinkRound
			.StartPos = EXSWIMLANELib.AlignmentEnum.LeftAlignment
		End With
	End With
	.FitToClient()
	.EndUpdate()
End With
106
Extends the caption on the element's width

With AxSwimLane1
	With .Elements.Add("<solidline> <c><b>Bank Account</b></solidline><br>+ owner: String <r><a 1;e64=gA8ABzABvABsABpABkg8JABuABlAAgAA4AAwisXjMYH0TAECM" & _
	"YAjsCMwAM4AkMGhEGOUei0Yl8bkQAOAAlsGmsSlp0h0SgkCF8DgsNhUMhEKiESkYAoMlk8phssmcCltLMNTAFOlFDlc2l0amMxjomAAjAA5AA2tMaHcfplZk1blVDqtu" & _
	"oNXjoAAEBA=>▲</a><br><solidline>+ balance: Currency = 0</solidline><br>+ deposit(amount: Currency)<r><a 2;e64=gA8ABjAA+AEC" & _
	"MwAM8DABvABshoAOQAEAAHAAGEWjEajMGNoAMoAOgANERMgAOcHAAvAEJhcEh0Qh0Tg0CmkqMMFlUuhkxiMTisXjNCjk6EwAEYAHIAG1MjY7lUsnkwh8/nUClk5gwAAE" & _
	"BA==>▲</a><br>+ withdraw(amount: Currency)")
		.ID = "Account"
		.X = -128
		.CaptionSingleLine = EXSWIMLANELib.CaptionSingleLineEnum.exCaptionBreakWrap
		.AutoSize = False
		.Width = 256
		.Height = .AutoHeight
		.CaptionAlign = &H4
	End With
End With
105
Gets the width/height of the element to fit its content ( as if the AutoSize property is True )

' AnchorClick event - Occurs when an anchor element is clicked.
Private Sub AxSwimLane1_AnchorClick(ByVal sender As System.Object, ByVal e As AxEXSWIMLANELib._ISwimLaneEvents_AnchorClickEvent) Handles AxSwimLane1.AnchorClick
	With AxSwimLane1
		With .Elements.Item("Account")
			.Height = .AutoHeight
		End With
	End With
End Sub

With AxSwimLane1
	With .Elements.Add("<solidline> <c><b>Bank Account</b></solidline><br>+ owner: String <r><a 1;e64=gA8ABzABvABsABpABkg8JABuABlAAgAA4AAwisXjMYH0TAECM" & _
	"YAjsCMwAM4AkMGhEGOUei0Yl8bkQAOAAlsGmsSlp0h0SgkCF8DgsNhUMhEKiESkYAoMlk8phssmcCltLMNTAFOlFDlc2l0amMxjomAAjAA5AA2tMaHcfplZk1blVDqtu" & _
	"oNXjoAAEBA=>▲</a><br><solidline>+ balance: Currency = 0</solidline><br>+ deposit(amount: Currency)<r><a 2;e64=gA8ABjAA+AEC" & _
	"MwAM8DABvABshoAOQAEAAHAAGEWjEajMGNoAMoAOgANERMgAOcHAAvAEJhcEh0Qh0Tg0CmkqMMFlUuhkxiMTisXjNCjk6EwAEYAHIAG1MjY7lUsnkwh8/nUClk5gwAAE" & _
	"BA==>▲</a><br>+ withdraw(amount: Currency)")
		.ID = "Account"
		.X = -128
		.CaptionSingleLine = EXSWIMLANELib.CaptionSingleLineEnum.exCaptionBreakWrap
		.AutoSize = False
		.Width = 256
		.Height = .AutoHeight
		.CaptionAlign = &H4
	End With
End With
104
Fullfit the caption on the element's width

With AxSwimLane1
	With .Elements.Add("<solidline><b>Bank Account</b></solidline><br>+ owner: String <r><a 1;properties>+</a><br><solidline>+ balance: Currency = 0</s" & _
	"olidline><br>+ deposit(amount: Currency)<r><a 2;methods>+</a><br>+ withdraw(amount: Currency)")
		.CaptionSingleLine = EXSWIMLANELib.CaptionSingleLineEnum.exCaptionBreakWrap
		.BackColor = RGB(248,248,248)
		.AutoSize = False
		.Width = 194
		.Height = 76
		.CaptionAlign = &H4
	End With
End With
103
Wrap the caption by <br> or "\r\n" sequence only

With AxSwimLane1
	With .Elements.Add("<solidline><b>Bank Account</b></solidline><br>+ owner: String <r><a 1;properties>+</a><br><solidline>+ balance: Currency = 0</s" & _
	"olidline><br>+ deposit(amount: Currency)<r><a 2;methods>+</a><br>+ withdraw(amount: Currency)")
		.CaptionSingleLine = EXSWIMLANELib.CaptionSingleLineEnum.exCaptionBreakWrap
		.BackColor = RGB(248,248,248)
	End With
End With
102
Display a custom tooltip
' MouseMove event - Occurs when the user moves the mouse.
Private Sub AxSwimLane1_MouseMoveEvent(ByVal sender As System.Object, ByVal e As AxEXSWIMLANELib._ISwimLaneEvents_MouseMoveEvent) Handles AxSwimLane1.MouseMoveEvent
	With AxSwimLane1
		.ShowToolTip("new content","",Nothing,"+8","+8")
	End With
End Sub


101
Shows the tooltip of the object moved relative to its default position
' MouseMove event - Occurs when the user moves the mouse.
Private Sub AxSwimLane1_MouseMoveEvent(ByVal sender As System.Object, ByVal e As AxEXSWIMLANELib._ISwimLaneEvents_MouseMoveEvent) Handles AxSwimLane1.MouseMoveEvent
	With AxSwimLane1
		.ShowToolTip("<null>","<null>",Nothing,"+8","+8")
	End With
End Sub

With AxSwimLane1
	.Elements.Add("Element with a Tooltip").ToolTip = "This is a bit of text that should be displayed when cursor hovers the element."
End With