| 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
|
| 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)
|
| 142 |
The exChangeColorOnOverlap flag changes the color for links in areas where they overlap with other links, enhancing clarity and distinction between them
|
| 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)
|
| 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
|
| 139 |
How can I replace or add an icon at runtime
|
| 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
|
| 112 |
Expandable-caption
|
| 111 |
Expandable-caption
|
| 110 |
Draws a frame arround the link's arrow
|
| 109 |
Draws a frame arround the arrow for all links
|
| 108 |
Change the size to display the arrow of the link
|
| 107 |
Change the size to display the arrows for all links
|
| 106 |
Extends the caption on the element's width
|
| 105 |
Gets the width/height of the element to fit its content ( as if the AutoSize property is True )
|
| 104 |
Fullfit the caption on the element's width
|
| 103 |
Wrap the caption by <br> or "\r\n" sequence only
|
| 102 |
Display a custom tooltip
|
| 101 |
Shows the tooltip of the object moved relative to its default position
|
















