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.
|
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
|
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
|
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
|
134 |
exResizePoolHeader, the user resizes the header's pool from the surface
|
133 |
exMovePool, The user moves the pool from the surface. The AllowMovePool property specifies the keys combination to allow user to move the pool
|
132 |
exResizePool, The user resizes the pool from the surface. The AllowResizePool property specifies the keys combination to allow user to resize the pool
|
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
|
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.
|
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. procedure TWinForm1.AxSwimLane1_LayoutEndChanging(sender: System.Object; e: AxEXSWIMLANELib._ISwimLaneEvents_LayoutEndChangingEvent); begin with AxSwimLane1 do begin OutputDebugString( 'LayoutEndChanging' ); OutputDebugString( FormatABC('value case (default:value;32:`exUndoRedoUpdate`;33:`exUndo`;34:`exRedo`)',TObject(e.operation),Nil,Nil) ); end end; // LayoutStartChanging event - Occurs when the control's layout is about to be changed. procedure TWinForm1.AxSwimLane1_LayoutStartChanging(sender: System.Object; e: AxEXSWIMLANELib._ISwimLaneEvents_LayoutStartChangingEvent); begin with AxSwimLane1 do begin OutputDebugString( 'LayoutStartChanging' ); OutputDebugString( FormatABC('value case (default:value;32:`exUndoRedoUpdate`;33:`exUndo`;34:`exRedo`)',TObject(e.operation),Nil,Nil) ); end end; with AxSwimLane1 do begin BeginUpdate(); AllowUndoRedo := True; AllowLinkControlPoint := Integer(EXSWIMLANELib.LinkControlPointEnum.exAllowChangeTo) Or Integer(EXSWIMLANELib.LinkControlPointEnum.exAllowChangeFrom) Or Integer(EXSWIMLANELib.LinkControlPointEnum.exEndControlPoint) Or Integer(EXSWIMLANELib.LinkControlPointEnum.exStartControlPoint); with Elements do begin Add('Node <b>1',TObject(-64),TObject(-64)); Add('Node <b>2',Nil,Nil); Add('Node <b>3',TObject(64),TObject(-64)); end; Pools.Add(TObject(-100),TObject(-100),TObject(250),TObject(160)); Links.Add(AxSwimLane1.Elements.Item[TObject(1)],AxSwimLane1.Elements.Item[TObject(2)],'L1'); EndUpdate(); OutputDebugString( 'Press CTRL+Z to Undo, CTRL+Y to Redo' ); end |
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. procedure TWinForm1.AxSwimLane1_LayoutEndChanging(sender: System.Object; e: AxEXSWIMLANELib._ISwimLaneEvents_LayoutEndChangingEvent); begin with AxSwimLane1 do begin OutputDebugString( 'LayoutEndChanging' ); OutputDebugString( FormatABC('value = 9 ? `exLinkObjects` : value',TObject(e.operation),Nil,Nil) ); end end; // LayoutStartChanging event - Occurs when the control's layout is about to be changed. procedure TWinForm1.AxSwimLane1_LayoutStartChanging(sender: System.Object; e: AxEXSWIMLANELib._ISwimLaneEvents_LayoutStartChangingEvent); begin with AxSwimLane1 do begin OutputDebugString( 'LayoutStartChanging' ); OutputDebugString( FormatABC('value = 9 ? `exLinkObjects` : value',TObject(e.operation),Nil,Nil) ); end end; with AxSwimLane1 do begin BeginUpdate(); with Elements do begin Add('Node <b>1',TObject(-64),TObject(-64)); Add('Node <b>2',Nil,Nil); Add('Node <b>3',TObject(64),TObject(-64)); end; EndUpdate(); OutputDebugString( 'Hold SHIFT, click an element, and drag to another element to create a link between them' ); end |
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. procedure TWinForm1.AxSwimLane1_ClickEvent(sender: System.Object; e: System.EventArgs); begin // ElementFromPoint(-1,-1).Edit(0) end; // LayoutEndChanging event - Notifies your application once the control's layout has been changed. procedure TWinForm1.AxSwimLane1_LayoutEndChanging(sender: System.Object; e: AxEXSWIMLANELib._ISwimLaneEvents_LayoutEndChangingEvent); begin with AxSwimLane1 do begin OutputDebugString( 'LayoutEndChanging' ); OutputDebugString( FormatABC('value = 8 ? `exEditObject` : value',TObject(e.operation),Nil,Nil) ); end end; // LayoutStartChanging event - Occurs when the control's layout is about to be changed. procedure TWinForm1.AxSwimLane1_LayoutStartChanging(sender: System.Object; e: AxEXSWIMLANELib._ISwimLaneEvents_LayoutStartChangingEvent); begin with AxSwimLane1 do begin OutputDebugString( 'LayoutStartChanging' ); OutputDebugString( FormatABC('value = 8 ? `exEditObject` : value',TObject(e.operation),Nil,Nil) ); end end; with AxSwimLane1 do begin BeginUpdate(); AllowLinkControlPoint := Integer(EXSWIMLANELib.LinkControlPointEnum.exAllowChangeTo) Or Integer(EXSWIMLANELib.LinkControlPointEnum.exAllowChangeFrom) Or Integer(EXSWIMLANELib.LinkControlPointEnum.exEndControlPoint) Or Integer(EXSWIMLANELib.LinkControlPointEnum.exStartControlPoint); with Elements do begin Add('Node <b>1',TObject(-64),TObject(-64)); Add('Node <b>2',Nil,Nil); Add('Node <b>3',TObject(64),TObject(-64)); end; Pools.Add(TObject(-100),TObject(-100),TObject(250),TObject(160)); Links.Add(AxSwimLane1.Elements.Item[TObject(1)],AxSwimLane1.Elements.Item[TObject(2)],'L1'); EndUpdate(); OutputDebugString( 'Click an element to edit its caption' ); end |
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
|
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. procedure TWinForm1.AxSwimLane1_LayoutEndChanging(sender: System.Object; e: AxEXSWIMLANELib._ISwimLaneEvents_LayoutEndChangingEvent); begin with AxSwimLane1 do begin OutputDebugString( 'LayoutEndChanging' ); OutputDebugString( FormatABC('value = 6 ? `exSelectNothing` : value',TObject(e.operation),Nil,Nil) ); end end; // LayoutStartChanging event - Occurs when the control's layout is about to be changed. procedure TWinForm1.AxSwimLane1_LayoutStartChanging(sender: System.Object; e: AxEXSWIMLANELib._ISwimLaneEvents_LayoutStartChangingEvent); begin with AxSwimLane1 do begin OutputDebugString( 'LayoutStartChanging' ); OutputDebugString( FormatABC('value = 6 ? `exSelectNothing` : value',TObject(e.operation),Nil,Nil) ); end end; with AxSwimLane1 do begin BeginUpdate(); AllowSelectNothing := True; AllowLinkControlPoint := Integer(EXSWIMLANELib.LinkControlPointEnum.exAllowChangeTo) Or Integer(EXSWIMLANELib.LinkControlPointEnum.exAllowChangeFrom) Or Integer(EXSWIMLANELib.LinkControlPointEnum.exEndControlPoint) Or Integer(EXSWIMLANELib.LinkControlPointEnum.exStartControlPoint); with Elements do begin Add('Node <b>1',TObject(-64),TObject(-64)); Add('Node <b>2',Nil,Nil).Selected := True; Add('Node <b>3',TObject(64),TObject(-64)); end; Pools.Add(TObject(-100),TObject(-100),TObject(250),TObject(160)); Links.Add(AxSwimLane1.Elements.Item[TObject(1)],AxSwimLane1.Elements.Item[TObject(2)],'L1'); EndUpdate(); OutputDebugString( 'Select an element, and then click outside to select nothing' ); end |
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. procedure TWinForm1.AxSwimLane1_LayoutEndChanging(sender: System.Object; e: AxEXSWIMLANELib._ISwimLaneEvents_LayoutEndChangingEvent); begin with AxSwimLane1 do begin OutputDebugString( 'LayoutEndChanging' ); OutputDebugString( FormatABC('value = 5 ? `exSelectElement` : value',TObject(e.operation),Nil,Nil) ); end end; // LayoutStartChanging event - Occurs when the control's layout is about to be changed. procedure TWinForm1.AxSwimLane1_LayoutStartChanging(sender: System.Object; e: AxEXSWIMLANELib._ISwimLaneEvents_LayoutStartChangingEvent); begin with AxSwimLane1 do begin OutputDebugString( 'LayoutStartChanging' ); OutputDebugString( FormatABC('value = 5 ? `exSelectElement` : value',TObject(e.operation),Nil,Nil) ); end end; with AxSwimLane1 do begin BeginUpdate(); AllowLinkControlPoint := Integer(EXSWIMLANELib.LinkControlPointEnum.exAllowChangeTo) Or Integer(EXSWIMLANELib.LinkControlPointEnum.exAllowChangeFrom) Or Integer(EXSWIMLANELib.LinkControlPointEnum.exEndControlPoint) Or Integer(EXSWIMLANELib.LinkControlPointEnum.exStartControlPoint); with Elements do begin Add('Node <b>1',TObject(-64),TObject(-64)); Add('Node <b>2',Nil,Nil); Add('Node <b>3',TObject(64),TObject(-64)); end; Pools.Add(TObject(-100),TObject(-100),TObject(250),TObject(160)); Links.Add(AxSwimLane1.Elements.Item[TObject(1)],AxSwimLane1.Elements.Item[TObject(2)],'L1'); EndUpdate(); OutputDebugString( 'Hold ALT and click, then drag to select elements within the drawn rectangle. Click an element to select it. CTRL + CLick to unse' + 'lect it' ); end |
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. procedure TWinForm1.AxSwimLane1_LayoutEndChanging(sender: System.Object; e: AxEXSWIMLANELib._ISwimLaneEvents_LayoutEndChangingEvent); begin with AxSwimLane1 do begin OutputDebugString( 'LayoutEndChanging' ); OutputDebugString( FormatABC('value = 4 ? `exMoveElement` : value',TObject(e.operation),Nil,Nil) ); end end; // LayoutStartChanging event - Occurs when the control's layout is about to be changed. procedure TWinForm1.AxSwimLane1_LayoutStartChanging(sender: System.Object; e: AxEXSWIMLANELib._ISwimLaneEvents_LayoutStartChangingEvent); begin with AxSwimLane1 do begin OutputDebugString( 'LayoutStartChanging' ); OutputDebugString( FormatABC('value = 4 ? `exMoveElement` : value',TObject(e.operation),Nil,Nil) ); end end; with AxSwimLane1 do begin BeginUpdate(); AllowLinkControlPoint := Integer(EXSWIMLANELib.LinkControlPointEnum.exAllowChangeTo) Or Integer(EXSWIMLANELib.LinkControlPointEnum.exAllowChangeFrom) Or Integer(EXSWIMLANELib.LinkControlPointEnum.exEndControlPoint) Or Integer(EXSWIMLANELib.LinkControlPointEnum.exStartControlPoint); with Elements do begin Add('Node <b>1',TObject(-64),TObject(-64)); Add('Node <b>2',Nil,Nil); Add('Node <b>3',TObject(64),TObject(-64)); end; Pools.Add(TObject(-100),TObject(-100),TObject(250),TObject(160)); Links.Add(AxSwimLane1.Elements.Item[TObject(1)],AxSwimLane1.Elements.Item[TObject(2)],'L1'); EndUpdate(); OutputDebugString( 'Move an element' ); end |
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. procedure TWinForm1.AxSwimLane1_LayoutEndChanging(sender: System.Object; e: AxEXSWIMLANELib._ISwimLaneEvents_LayoutEndChangingEvent); begin with AxSwimLane1 do begin OutputDebugString( 'LayoutEndChanging' ); OutputDebugString( FormatABC('value = 3 ? `exResizeElement` : value',TObject(e.operation),Nil,Nil) ); end end; // LayoutStartChanging event - Occurs when the control's layout is about to be changed. procedure TWinForm1.AxSwimLane1_LayoutStartChanging(sender: System.Object; e: AxEXSWIMLANELib._ISwimLaneEvents_LayoutStartChangingEvent); begin with AxSwimLane1 do begin OutputDebugString( 'LayoutStartChanging' ); OutputDebugString( FormatABC('value = 3 ? `exResizeElement` : value',TObject(e.operation),Nil,Nil) ); end end; with AxSwimLane1 do begin BeginUpdate(); AllowLinkControlPoint := Integer(EXSWIMLANELib.LinkControlPointEnum.exAllowChangeTo) Or Integer(EXSWIMLANELib.LinkControlPointEnum.exAllowChangeFrom) Or Integer(EXSWIMLANELib.LinkControlPointEnum.exEndControlPoint) Or Integer(EXSWIMLANELib.LinkControlPointEnum.exStartControlPoint); with Elements do begin Add('Node <b>1',TObject(-64),TObject(-64)).AutoSize := False; Add('Node <b>2',Nil,Nil).AutoSize := False; Add('Node <b>3',TObject(64),TObject(-64)).AutoSize := False; end; Pools.Add(TObject(-100),TObject(-100),TObject(250),TObject(160)); Links.Add(AxSwimLane1.Elements.Item[TObject(1)],AxSwimLane1.Elements.Item[TObject(2)],'L1'); EndUpdate(); OutputDebugString( 'Resize an element' ); end |
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. procedure TWinForm1.AxSwimLane1_LayoutEndChanging(sender: System.Object; e: AxEXSWIMLANELib._ISwimLaneEvents_LayoutEndChangingEvent); begin with AxSwimLane1 do begin OutputDebugString( 'LayoutEndChanging' ); OutputDebugString( FormatABC('value = 2 ? `exSurfaceHome` : value',TObject(e.operation),Nil,Nil) ); end end; // LayoutStartChanging event - Occurs when the control's layout is about to be changed. procedure TWinForm1.AxSwimLane1_LayoutStartChanging(sender: System.Object; e: AxEXSWIMLANELib._ISwimLaneEvents_LayoutStartChangingEvent); begin with AxSwimLane1 do begin OutputDebugString( 'LayoutStartChanging' ); OutputDebugString( FormatABC('value = 2 ? `exSurfaceHome` : value',TObject(e.operation),Nil,Nil) ); end end; with AxSwimLane1 do begin BeginUpdate(); AllowLinkControlPoint := Integer(EXSWIMLANELib.LinkControlPointEnum.exAllowChangeTo) Or Integer(EXSWIMLANELib.LinkControlPointEnum.exAllowChangeFrom) Or Integer(EXSWIMLANELib.LinkControlPointEnum.exEndControlPoint) Or Integer(EXSWIMLANELib.LinkControlPointEnum.exStartControlPoint); with Elements do begin Add('Node <b>1',TObject(-64),TObject(-64)); Add('Node <b>2',Nil,Nil); Add('Node <b>3',TObject(64),TObject(-64)); end; Pools.Add(TObject(-100),TObject(-100),TObject(250),TObject(160)); Links.Add(AxSwimLane1.Elements.Item[TObject(1)],AxSwimLane1.Elements.Item[TObject(2)],'L1'); EndUpdate(); OutputDebugString( 'Click the Home button' ); end |
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. procedure TWinForm1.AxSwimLane1_LayoutEndChanging(sender: System.Object; e: AxEXSWIMLANELib._ISwimLaneEvents_LayoutEndChangingEvent); begin with AxSwimLane1 do begin OutputDebugString( 'LayoutEndChanging' ); OutputDebugString( FormatABC('value = 1 ? `exSurfaceZoom` : value',TObject(e.operation),Nil,Nil) ); end end; // LayoutStartChanging event - Occurs when the control's layout is about to be changed. procedure TWinForm1.AxSwimLane1_LayoutStartChanging(sender: System.Object; e: AxEXSWIMLANELib._ISwimLaneEvents_LayoutStartChangingEvent); begin with AxSwimLane1 do begin OutputDebugString( 'LayoutStartChanging' ); OutputDebugString( FormatABC('value = 1 ? `exSurfaceZoom` : value',TObject(e.operation),Nil,Nil) ); end end; with AxSwimLane1 do begin BeginUpdate(); AllowLinkControlPoint := Integer(EXSWIMLANELib.LinkControlPointEnum.exAllowChangeTo) Or Integer(EXSWIMLANELib.LinkControlPointEnum.exAllowChangeFrom) Or Integer(EXSWIMLANELib.LinkControlPointEnum.exEndControlPoint) Or Integer(EXSWIMLANELib.LinkControlPointEnum.exStartControlPoint); with Elements do begin Add('Node <b>1',TObject(-64),TObject(-64)); Add('Node <b>2',Nil,Nil); Add('Node <b>3',TObject(64),TObject(-64)); end; Pools.Add(TObject(-100),TObject(-100),TObject(250),TObject(160)); Links.Add(AxSwimLane1.Elements.Item[TObject(1)],AxSwimLane1.Elements.Item[TObject(2)],'L1'); EndUpdate(); OutputDebugString( 'Click and drag the surface to reposition it' ); end |
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. procedure TWinForm1.AxSwimLane1_LayoutEndChanging(sender: System.Object; e: AxEXSWIMLANELib._ISwimLaneEvents_LayoutEndChangingEvent); begin with AxSwimLane1 do begin OutputDebugString( 'LayoutEndChanging' ); OutputDebugString( FormatABC('value = 0 ? `exSurfaceMove` : value',TObject(e.operation),Nil,Nil) ); end end; // LayoutStartChanging event - Occurs when the control's layout is about to be changed. procedure TWinForm1.AxSwimLane1_LayoutStartChanging(sender: System.Object; e: AxEXSWIMLANELib._ISwimLaneEvents_LayoutStartChangingEvent); begin with AxSwimLane1 do begin OutputDebugString( 'LayoutStartChanging' ); OutputDebugString( FormatABC('value = 0 ? `exSurfaceMove` : value',TObject(e.operation),Nil,Nil) ); end end; with AxSwimLane1 do begin BeginUpdate(); AllowLinkControlPoint := Integer(EXSWIMLANELib.LinkControlPointEnum.exAllowChangeTo) Or Integer(EXSWIMLANELib.LinkControlPointEnum.exAllowChangeFrom) Or Integer(EXSWIMLANELib.LinkControlPointEnum.exEndControlPoint) Or Integer(EXSWIMLANELib.LinkControlPointEnum.exStartControlPoint); with Elements do begin Add('Node <b>1',TObject(-64),TObject(-64)); Add('Node <b>2',Nil,Nil); Add('Node <b>3',TObject(64),TObject(-64)); end; Pools.Add(TObject(-100),TObject(-100),TObject(250),TObject(160)); Links.Add(AxSwimLane1.Elements.Item[TObject(1)],AxSwimLane1.Elements.Item[TObject(2)],'L1'); EndUpdate(); OutputDebugString( 'Click and drag the surface to reposition it' ); end |
118 |
FormatABC method formats the A,B,C values based on the giving expression and returns the result
|
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. procedure TWinForm1.AxSwimLane1_Event(sender: System.Object; e: AxEXSWIMLANELib._ISwimLaneEvents_EventEvent); begin with AxSwimLane1 do begin OutputDebugString( get_EventParam(-2) ); end end; with AxSwimLane1 do begin FreezeEvents(True); OutputDebugString( 'No event is fired after FreezeEvents(True) call' ); BeginUpdate(); AllowLinkControlPoint := Integer(EXSWIMLANELib.LinkControlPointEnum.exEndControlPoint) Or Integer(EXSWIMLANELib.LinkControlPointEnum.exStartControlPoint); with Elements do begin Add('Node <b>1',TObject(-64),TObject(-64)); Add('Node <b>2',Nil,Nil); end; Pools.Add(TObject(-100),TObject(-100),TObject(250),TObject(160)); Links.Add(AxSwimLane1.Elements.Item[TObject(1)],AxSwimLane1.Elements.Item[TObject(2)],'L1'); EndUpdate(); end |
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. procedure TWinForm1.AxSwimLane1_LayoutEndChanging(sender: System.Object; e: AxEXSWIMLANELib._ISwimLaneEvents_LayoutEndChangingEvent); begin with AxSwimLane1 do begin OutputDebugString( 'LayoutEndChanging' ); OutputDebugString( e.operation ); OutputDebugString( FocusLink.ID ); end end; // LayoutStartChanging event - Occurs when the control's layout is about to be changed. procedure TWinForm1.AxSwimLane1_LayoutStartChanging(sender: System.Object; e: AxEXSWIMLANELib._ISwimLaneEvents_LayoutStartChangingEvent); begin with AxSwimLane1 do begin OutputDebugString( 'LayoutStartChanging' ); OutputDebugString( e.operation ); OutputDebugString( FocusLink.ID ); end end; with AxSwimLane1 do begin BeginUpdate(); AllowLinkControlPoint := Integer(EXSWIMLANELib.LinkControlPointEnum.exAllowChangeTo) Or Integer(EXSWIMLANELib.LinkControlPointEnum.exAllowChangeFrom) Or Integer(EXSWIMLANELib.LinkControlPointEnum.exEndControlPoint) Or Integer(EXSWIMLANELib.LinkControlPointEnum.exStartControlPoint); with Elements do begin Add('Node <b>1',TObject(-64),TObject(-64)); Add('Node <b>2',Nil,Nil); Add('Node <b>3',TObject(64),TObject(-64)); end; Pools.Add(TObject(-100),TObject(-100),TObject(250),TObject(160)); Links.Add(AxSwimLane1.Elements.Item[TObject(1)],AxSwimLane1.Elements.Item[TObject(2)],'L1'); FocusLink := 'L1'; EndUpdate(); end |
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. procedure TWinForm1.AxSwimLane1_LayoutEndChanging(sender: System.Object; e: AxEXSWIMLANELib._ISwimLaneEvents_LayoutEndChangingEvent); begin with AxSwimLane1 do begin OutputDebugString( 'LayoutEndChanging' ); OutputDebugString( e.operation ); OutputDebugString( FocusLink ); end end; // LayoutStartChanging event - Occurs when the control's layout is about to be changed. procedure TWinForm1.AxSwimLane1_LayoutStartChanging(sender: System.Object; e: AxEXSWIMLANELib._ISwimLaneEvents_LayoutStartChangingEvent); begin with AxSwimLane1 do begin OutputDebugString( 'LayoutStartChanging' ); OutputDebugString( e.operation ); OutputDebugString( FocusLink ); end end; with AxSwimLane1 do begin BeginUpdate(); AllowLinkControlPoint := Integer(EXSWIMLANELib.LinkControlPointEnum.exEndControlPoint) Or Integer(EXSWIMLANELib.LinkControlPointEnum.exStartControlPoint); with Elements do begin Add('Node <b>1',TObject(-64),TObject(-64)); Add('Node <b>2',Nil,Nil); end; Pools.Add(TObject(-100),TObject(-100),TObject(250),TObject(160)); Links.Add(AxSwimLane1.Elements.Item[TObject(1)],AxSwimLane1.Elements.Item[TObject(2)],'L1'); EndUpdate(); end |
114 |
Focus a link
|
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
// AnchorClick event - Occurs when an anchor element is clicked. procedure TWinForm1.AxSwimLane1_AnchorClick(sender: System.Object; e: AxEXSWIMLANELib._ISwimLaneEvents_AnchorClickEvent); begin with AxSwimLane1 do begin OutputDebugString( e.anchorID ); end end; with AxSwimLane1 do begin with Elements.Add('<solidline> <c><b>Bank Account</b></solidline><br>+ owner: String <r><a 1;e64=gA8ABzABvABsABpABkg8JABuABlAAgAA4AAwisXjMYH0TAECMY' + 'AjsCMwAM4AkMGhEGOUei0Yl8bkQAOAAlsGmsSlp0h0SgkCF8DgsNhUMhEKiESkYAoMlk8phssmcCltLMNTAFOlFDlc2l0amMxjomAAjAA5AA2tMaHcfplZk1blVDqtuo' + 'NXjoAAEBA=>▲</a><br><solidline>+ balance: Currency = 0</solidline><br>+ deposit(amount: Currency)<r><a 2;e64=gA8ABjAA+AECM' + 'wAM8DABvABshoAOQAEAAHAAGEWjEajMGNoAMoAOgANERMgAOcHAAvAEJhcEh0Qh0Tg0CmkqMMFlUuhkxiMTisXjNCjk6EwAEYAHIAG1MjY7lUsnkwh8/nUClk5gwAAEB' + 'A==>▲</a><br>+ withdraw(amount: Currency)',Nil,Nil) do begin ID := 'Account'; X := -256; Y := -164; CaptionSingleLine := EXSWIMLANELib.CaptionSingleLineEnum.exCaptionBreakWrap; CaptionAlign := EXSWIMLANELib.ContentAlignmentEnum($4); end; with Elements.Add('<solidline> <c><b>Person</b></solidline><br>+ name: String <r><a 1;e64=gA8ABzABvABsABpABkg8JABuABlAAgAA4AAwisXjMYH0TAECMYAjsCMwA' + 'M4AkMGhEGOUei0Yl8bkQAOAAlsGmsSlp0h0SgkCF8DgsNhUMhEKiESkYAoMlk8phssmcCltLMNTAFOlFDlc2l0amMxjomAAjAA5AA2tMaHcfplZk1blVDqtuoNXjoAAE' + 'BA=>▲</a><br><solidline># birth: Date</solidline><br>+ getCurrentAge(): int<r><a 2;e64=gA8ABjAA+AECMwAM8DABvABshoAOQAEAAHA' + 'AGEWjEajMGNoAMoAOgANERMgAOcHAAvAEJhcEh0Qh0Tg0CmkqMMFlUuhkxiMTisXjNCjk6EwAEYAHIAG1MjY7lUsnkwh8/nUClk5gwAAEBA==>▲</a>',Nil,Nil) do begin ID := 'Person'; Y := -164; CaptionSingleLine := EXSWIMLANELib.CaptionSingleLineEnum.exCaptionBreakWrap; end; with Elements.Add('<solidline> <c><b>Student</b></solidline><br><solidline>+ classes: List<Course> <r><a 1;e64=gA8ABzABvABsABpABkg8JABuABlAA+AAgAEC' + 'McTi4AMwAM4AjMGhEGOUVAA4AAwk8plcqihwAElg0wiUlOkOiUEgQvgcFhsKhkIhUQiUUnccj0gn0jmMagUlowAMNOpEfkMNkkmlEqrctjQmAAjAA5AA2sssHcbnkdq1' + 'Ln1QtVSjQAAEBA==>▲</a></solidline><br>- attend(class: Course)<r><a 2;e64=gA8ABjAA+AECMwAM8DABvABshoAOQAEAAHAAGEWjEajMGNoAM' + 'oAOgANERMgAOcHAAvAEJhcEh0Qh0Tg0CmkqMMFlUuhkxiMTisXjNCjk6EwAEYAHIAG1MjY7lUsnkwh8/nUClk5gwAAEBA==>▲</a><br>- sleep()',Nil,Nil) do begin ID := 'Student'; Y := -64; CaptionSingleLine := EXSWIMLANELib.CaptionSingleLineEnum.exCaptionBreakWrap; end; with Links.Add(AxSwimLane1.Elements.Item['Account'],AxSwimLane1.Elements.Item['Student'],Nil) do begin Caption := '<fgcolor A0A0A0><solidline 808080> <c><b>Link</b></solidline><br># count: number <r><a ;exp=12992>➤</a>'; end; end |
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
with AxSwimLane1 do begin with Elements.Add('<solidline> <c><b>Bank Account</b></solidline><br>+ owner: String <r><a 1;e64=gA8ABzABvABsABpABkg8JABuABlAAgAA4AAwisXjMYH0TAECMY' + 'AjsCMwAM4AkMGhEGOUei0Yl8bkQAOAAlsGmsSlp0h0SgkCF8DgsNhUMhEKiESkYAoMlk8phssmcCltLMNTAFOlFDlc2l0amMxjomAAjAA5AA2tMaHcfplZk1blVDqtuo' + 'NXjoAAEBA=>▲</a><br><solidline>+ balance: Currency = 0</solidline><br>+ deposit(amount: Currency)<r><a 2;e64=gA8ABjAA+AECM' + 'wAM8DABvABshoAOQAEAAHAAGEWjEajMGNoAMoAOgANERMgAOcHAAvAEJhcEh0Qh0Tg0CmkqMMFlUuhkxiMTisXjNCjk6EwAEYAHIAG1MjY7lUsnkwh8/nUClk5gwAAEB' + 'A==>▲</a><br>+ withdraw(amount: Currency)',Nil,Nil) do begin ID := 'Account'; X := -128; CaptionSingleLine := EXSWIMLANELib.CaptionSingleLineEnum.exCaptionBreakWrap; AutoSize := False; Width := 256; Height := AutoHeight; CaptionAlign := EXSWIMLANELib.ContentAlignmentEnum($4); end; end |
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. procedure TWinForm1.AxSwimLane1_AnchorClick(sender: System.Object; e: AxEXSWIMLANELib._ISwimLaneEvents_AnchorClickEvent); begin with AxSwimLane1 do begin with Elements.Item['Account'] do begin Height := AutoHeight; end; end end; with AxSwimLane1 do begin with Elements.Add('<solidline> <c><b>Bank Account</b></solidline><br>+ owner: String <r><a 1;e64=gA8ABzABvABsABpABkg8JABuABlAAgAA4AAwisXjMYH0TAECMY' + 'AjsCMwAM4AkMGhEGOUei0Yl8bkQAOAAlsGmsSlp0h0SgkCF8DgsNhUMhEKiESkYAoMlk8phssmcCltLMNTAFOlFDlc2l0amMxjomAAjAA5AA2tMaHcfplZk1blVDqtuo' + 'NXjoAAEBA=>▲</a><br><solidline>+ balance: Currency = 0</solidline><br>+ deposit(amount: Currency)<r><a 2;e64=gA8ABjAA+AECM' + 'wAM8DABvABshoAOQAEAAHAAGEWjEajMGNoAMoAOgANERMgAOcHAAvAEJhcEh0Qh0Tg0CmkqMMFlUuhkxiMTisXjNCjk6EwAEYAHIAG1MjY7lUsnkwh8/nUClk5gwAAEB' + 'A==>▲</a><br>+ withdraw(amount: Currency)',Nil,Nil) do begin ID := 'Account'; X := -128; CaptionSingleLine := EXSWIMLANELib.CaptionSingleLineEnum.exCaptionBreakWrap; AutoSize := False; Width := 256; Height := AutoHeight; CaptionAlign := EXSWIMLANELib.ContentAlignmentEnum($4); end; end |
104 |
Fullfit the caption on the element's width
with AxSwimLane1 do begin with Elements.Add('<solidline><b>Bank Account</b></solidline><br>+ owner: String <r><a 1;properties>+</a><br><solidline>+ balance: Currency = 0</so' + 'lidline><br>+ deposit(amount: Currency)<r><a 2;methods>+</a><br>+ withdraw(amount: Currency)',Nil,Nil) do begin CaptionSingleLine := EXSWIMLANELib.CaptionSingleLineEnum.exCaptionBreakWrap; BackColor := $f8f8f8; AutoSize := False; Width := 194; Height := 76; CaptionAlign := EXSWIMLANELib.ContentAlignmentEnum($4); end; end |
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
|
100 |
Add a pool to cover all visible-elements
with AxSwimLane1 do begin BeginUpdate(); AllowUndoRedo := True; with Elements do begin Add('Item <b>1',TObject(-64),TObject(-64)); Add('Item <b>2',Nil,Nil); end; Links.Add(AxSwimLane1.Elements.Item[TObject(1)],AxSwimLane1.Elements.Item[TObject(2)],Nil); Pools.Add(Nil,Nil,Nil,Nil).HeaderSize[EXSWIMLANELib.HeaderPosEnum.exHeaderLeft] := 24; EndUpdate(); end |
99 |
How can I ensure that a specified pool fits the surface's visible area
|
98 |
No property for the pool can be saved/restored through Undo/Redo feature
with AxSwimLane1 do begin AllowUndoRedo := True; with Pools.Add(TObject(-54),TObject(-47),TObject(244),TObject(112)) do begin l := StartUpdatePool; with Lane[EXSWIMLANELib.LaneTypeEnum.exLaneVertical] do begin Color := $f0f0f0; Children.Count := 2; end; EndUpdatePool(l); end; end |
97 |
Rename Undo/Redo commands into the control's toolbar
with AxSwimLane1 do begin BeginUpdate(); AllowUndoRedo := True; ToolBarFormat := '-1,100,102,101,|,103,104'; set_ToolBarCaption(103,'Anuleaza <img>4</img>'); set_ToolBarCaption(104,'<img>5</img>Reface'); set_ToolBarToolTip(103,'Anuleaza ultima actiune UI. Pentru a anula o actiune apasati Ctrl+Z.'); set_ToolBarToolTip(104,'Inverseaza cea mai recenta operatie de anulare. Pentru a reface o actiune apasati Ctrl+Y.'); Pools.Add(TObject(-154),TObject(-82),TObject(244),TObject(122)); with Elements do begin Add('Item <b>1',TObject(-64),TObject(-64)); Add('Item <b>2',Nil,Nil); end; Links.Add(AxSwimLane1.Elements.Item[TObject(1)],AxSwimLane1.Elements.Item[TObject(2)],Nil); EndUpdate(); end |
96 |
Add Undo/Redo commands to control's toolbar
with AxSwimLane1 do begin BeginUpdate(); AllowUndoRedo := True; ToolBarFormat := '-1,100,102,101,|,103,104'; Pools.Add(TObject(-154),TObject(-82),TObject(244),TObject(122)); with Elements do begin Add('Item <b>1',TObject(-64),TObject(-64)); Add('Item <b>2',Nil,Nil); end; Links.Add(AxSwimLane1.Elements.Item[TObject(1)],AxSwimLane1.Elements.Item[TObject(2)],Nil); EndUpdate(); end |
95 |
Clear Undo/Redo queue (method 2)
with AxSwimLane1 do begin BeginUpdate(); AllowUndoRedo := True; Pools.Add(TObject(-154),TObject(-82),TObject(244),TObject(122)); with Elements do begin Add('Item <b>1',TObject(-64),TObject(-64)); Add('Item <b>2',Nil,Nil); end; Links.Add(AxSwimLane1.Elements.Item[TObject(1)],AxSwimLane1.Elements.Item[TObject(2)],Nil); c := UndoRedoQueueLength; UndoRedoQueueLength := 0; UndoRedoQueueLength := c; OutputDebugString( get_UndoListAction(Nil,Nil) ); EndUpdate(); end |
94 |
Clear Undo/Redo queue (method 1)
with AxSwimLane1 do begin BeginUpdate(); AllowUndoRedo := True; Pools.Add(TObject(-154),TObject(-82),TObject(244),TObject(122)); with Elements do begin Add('Item <b>1',TObject(-64),TObject(-64)); Add('Item <b>2',Nil,Nil); end; Links.Add(AxSwimLane1.Elements.Item[TObject(1)],AxSwimLane1.Elements.Item[TObject(2)],Nil); AllowUndoRedo := True; OutputDebugString( get_UndoListAction(Nil,Nil) ); EndUpdate(); end |
93 |
Removes Redo operations
with AxSwimLane1 do begin BeginUpdate(); AllowUndoRedo := True; Pools.Add(TObject(-154),TObject(-82),TObject(244),TObject(122)); with Elements do begin Add('Item <b>1',TObject(-64),TObject(-64)); Add('Item <b>2',Nil,Nil); end; Links.Add(AxSwimLane1.Elements.Item[TObject(1)],AxSwimLane1.Elements.Item[TObject(2)],Nil); Undo(); RedoRemoveAction(TObject(10),Nil); OutputDebugString( get_RedoListAction(Nil,Nil) ); EndUpdate(); end |
92 |
Removes Undo operations
with AxSwimLane1 do begin BeginUpdate(); AllowUndoRedo := True; Pools.Add(TObject(-154),TObject(-82),TObject(244),TObject(122)); with Elements do begin Add('Item <b>1',TObject(-64),TObject(-64)); Add('Item <b>2',Nil,Nil); end; Links.Add(AxSwimLane1.Elements.Item[TObject(1)],AxSwimLane1.Elements.Item[TObject(2)],Nil); UndoRemoveAction(TObject(10),Nil); OutputDebugString( get_UndoListAction(Nil,Nil) ); EndUpdate(); end |
91 |
Record the UI operations as a block of undo/redo operations
with AxSwimLane1 do begin BeginUpdate(); AllowUndoRedo := True; StartBlockUndoRedo(); Pools.Add(TObject(-154),TObject(-82),TObject(244),TObject(122)); with Elements do begin Add('Item <b>1',TObject(-64),TObject(-64)); Add('Item <b>2',Nil,Nil); end; Links.Add(AxSwimLane1.Elements.Item[TObject(1)],AxSwimLane1.Elements.Item[TObject(2)],Nil); EndBlockUndoRedo(); OutputDebugString( get_UndoListAction(Nil,Nil) ); EndUpdate(); end |
90 |
Groups the next to current Undo/Redo Actions in a single block
with AxSwimLane1 do begin BeginUpdate(); AllowUndoRedo := True; Pools.Add(TObject(-154),TObject(-82),TObject(244),TObject(122)); with Elements do begin Add('Item <b>1',TObject(-64),TObject(-64)); Add('Item <b>2',Nil,Nil); end; Links.Add(AxSwimLane1.Elements.Item[TObject(1)],AxSwimLane1.Elements.Item[TObject(2)],Nil); GroupUndoRedoActions(3); OutputDebugString( get_UndoListAction(Nil,Nil) ); EndUpdate(); end |
89 |
Limits the number of entries within the Undo/Redo queue
with AxSwimLane1 do begin BeginUpdate(); AllowUndoRedo := True; UndoRedoQueueLength := 1; Pools.Add(TObject(-154),TObject(-82),TObject(244),TObject(122)); with Elements do begin Add('Item <b>1',TObject(-64),TObject(-64)); Add('Item <b>2',Nil,Nil); end; Links.Add(AxSwimLane1.Elements.Item[TObject(1)],AxSwimLane1.Elements.Item[TObject(2)],Nil); OutputDebugString( get_UndoListAction(Nil,Nil) ); EndUpdate(); end |
88 |
Lists the Redo actions that can be performed on the surface
with AxSwimLane1 do begin BeginUpdate(); AllowUndoRedo := True; Pools.Add(TObject(-154),TObject(-82),TObject(244),TObject(122)); with Elements do begin Add('Item <b>1',TObject(-64),TObject(-64)); Add('Item <b>2',Nil,Nil); end; Links.Add(AxSwimLane1.Elements.Item[TObject(1)],AxSwimLane1.Elements.Item[TObject(2)],Nil); Undo(); OutputDebugString( get_RedoListAction(Nil,Nil) ); EndUpdate(); end |
87 |
Lists the Undo actions that can be performed on the surface
with AxSwimLane1 do begin BeginUpdate(); AllowUndoRedo := True; Pools.Add(TObject(-154),TObject(-82),TObject(244),TObject(122)); with Elements do begin Add('Item <b>1',TObject(-64),TObject(-64)); Add('Item <b>2',Nil,Nil); end; Links.Add(AxSwimLane1.Elements.Item[TObject(1)],AxSwimLane1.Elements.Item[TObject(2)],Nil); OutputDebugString( get_UndoListAction(Nil,Nil) ); EndUpdate(); end |
86 |
Checks whether the Undo operation is possible
with AxSwimLane1 do begin BeginUpdate(); AllowUndoRedo := True; Pools.Add(TObject(-154),TObject(-82),TObject(244),TObject(122)); with Elements do begin Add('Item <b>1',TObject(-64),TObject(-64)); Add('Item <b>2',Nil,Nil); end; Links.Add(AxSwimLane1.Elements.Item[TObject(1)],AxSwimLane1.Elements.Item[TObject(2)],Nil); Undo(); OutputDebugString( 'CanRedo' ); OutputDebugString( CanRedo ); EndUpdate(); end |
85 |
Call Redo by code
with AxSwimLane1 do begin BeginUpdate(); AllowUndoRedo := True; Pools.Add(TObject(-154),TObject(-82),TObject(244),TObject(122)); with Elements do begin Add('Item <b>1',TObject(-64),TObject(-64)); Add('Item <b>2',Nil,Nil); end; Links.Add(AxSwimLane1.Elements.Item[TObject(1)],AxSwimLane1.Elements.Item[TObject(2)],Nil); Undo(); Redo(); EndUpdate(); end |
84 |
Checks whether the Undo operation is possible
with AxSwimLane1 do begin BeginUpdate(); AllowUndoRedo := True; Pools.Add(TObject(-154),TObject(-82),TObject(244),TObject(122)); with Elements do begin Add('Item <b>1',TObject(-64),TObject(-64)); Add('Item <b>2',Nil,Nil); end; Links.Add(AxSwimLane1.Elements.Item[TObject(1)],AxSwimLane1.Elements.Item[TObject(2)],Nil); OutputDebugString( 'CanUndo' ); OutputDebugString( CanUndo ); EndUpdate(); end |
83 |
Call Undo by code
with AxSwimLane1 do begin BeginUpdate(); AllowUndoRedo := True; Pools.Add(TObject(-154),TObject(-82),TObject(244),TObject(122)); with Elements do begin Add('Item <b>1',TObject(-64),TObject(-64)); Add('Item <b>2',Nil,Nil); end; Links.Add(AxSwimLane1.Elements.Item[TObject(1)],AxSwimLane1.Elements.Item[TObject(2)],Nil); Undo(); EndUpdate(); end |
82 |
Save the element's properties for Undo/Redo operations, by code
with AxSwimLane1 do begin BeginUpdate(); AllowUndoRedo := True; with Elements do begin Add('Item <b>1',TObject(-64),TObject(-64)); Add('Item <b>2',Nil,Nil); end; StartBlockUndoRedo(); with Links.Add(AxSwimLane1.Elements.Item[TObject(1)],AxSwimLane1.Elements.Item[TObject(2)],Nil) do begin h := StartUpdateLink; Color := $ff; Width := 2; ShowDir := False; ShowLinkType := EXSWIMLANELib.ShowLinkTypeEnum.exLinkStraight; EndUpdateLink(h); end; EndBlockUndoRedo(); EndUpdate(); end |
81 |
No color is restored for the link when Undo/Redo operation is executed
// AddElement event - A new element has been added to the surface. procedure TWinForm1.AxSwimLane1_AddElement(sender: System.Object; e: AxEXSWIMLANELib._ISwimLaneEvents_AddElementEvent); begin // Element.ShowCheckBox = True // Element.CheckBoxAlign = 2 end; with AxSwimLane1 do begin BeginUpdate(); AllowUndoRedo := True; with Elements do begin Add('Check <b>1',TObject(-64),TObject(-64)); Add('Check <b>2',Nil,Nil).Checked := EXSWIMLANELib.CheckStateEnum.exChecked; end; StartBlockUndoRedo(); with Links.Add(AxSwimLane1.Elements.Item[TObject(1)],AxSwimLane1.Elements.Item[TObject(2)],Nil) do begin h := StartUpdateLink; Color := $ff; Width := 2; ShowDir := False; ShowLinkType := EXSWIMLANELib.ShowLinkTypeEnum.exLinkStraight; EndUpdateLink(h); end; EndBlockUndoRedo(); EndUpdate(); end |
80 |
Save the element's properties for Undo/Redo operations, by code
with AxSwimLane1 do begin BeginUpdate(); AllowUndoRedo := True; Elements.Add('Item <b>1',TObject(-64),TObject(-64)); StartBlockUndoRedo(); with Elements.Add('Item <b>2',Nil,Nil) do begin h := StartUpdateElement; BackColor := $0; ForeColor := $ffffff; BorderColor := $ff; EndUpdateElement(h); end; EndBlockUndoRedo(); EndUpdate(); end |
79 |
No color is restored for the element when Undo/Redo operation is executed
with AxSwimLane1 do begin BeginUpdate(); AllowUndoRedo := True; Elements.Add('Item <b>1',TObject(-64),TObject(-64)); StartBlockUndoRedo(); with Elements.Add('Item <b>2',Nil,Nil) do begin h := StartUpdateElement; BackColor := $0; ForeColor := $ffffff; BorderColor := $ff; EndUpdateElement(h); end; EndBlockUndoRedo(); EndUpdate(); end |
78 |
How can I ensure that a specified element fits the surface's visible area
|
77 |
LayoutEndChanging(exUndo), LayoutEndChanging(exRedo) or LayoutEndChanging(exUndoRedoUpdate) notifiy your application once a Undo/Redo operation is executed (CTRL+Z, CTRL+Y) or updated
|
76 |
Turn on the Undo/Redo feature
with AxSwimLane1 do begin BeginUpdate(); AllowUndoRedo := True; Pools.Add(TObject(-154),TObject(-82),TObject(244),TObject(122)); with Elements do begin Add('Item <b>1',TObject(-64),TObject(-64)); Add('Item <b>2',Nil,Nil); end; Links.Add(AxSwimLane1.Elements.Item[TObject(1)],AxSwimLane1.Elements.Item[TObject(2)],Nil); EndUpdate(); end |
75 |
ImageSize property on 32 (specifies the size of control' icons/images/check-boxes/radio-buttons)
|
74 |
ImageSize property on 16 (default) (specifies the size of control' icons)
|
73 |
We want to have option to start/end connectors at the middle of each side of the elements
|
72 |
How can I determine the position the user clicks within the element's boundaries (Click event)
// Click event - Occurs when the user presses and then releases the left mouse button over the control. procedure TWinForm1.AxSwimLane1_ClickEvent(sender: System.Object; e: System.EventArgs); begin with AxSwimLane1 do begin e := (get_ElementFromPoint(-1,-1) as Object); X := -1; Y := -1; PointToPosition(X,Y); OutputDebugString( e ); OutputDebugString( X ); OutputDebugString( Y ); end end; with AxSwimLane1 do begin BeginUpdate(); with Elements do begin Add('Element 1',Nil,Nil); Add('Element 2',TObject(128),TObject(64)); end; FitToClient(); EndUpdate(); end |
71 |
How can I determine the position the user clicks within the element's boundaries (MouseMove event)
// MouseMove event - Occurs when the user moves the mouse. procedure TWinForm1.AxSwimLane1_MouseMoveEvent(sender: System.Object; e: AxEXSWIMLANELib._ISwimLaneEvents_MouseMoveEvent); begin with AxSwimLane1 do begin e := (get_ElementFromPoint(e.x,e.y) as Object); PointToPosition(e.x,e.y); OutputDebugString( e ); OutputDebugString( e.x ); OutputDebugString( e.y ); end end; with AxSwimLane1 do begin BeginUpdate(); with Elements do begin Add('Element 1',Nil,Nil); Add('Element 2',TObject(128),TObject(64)); end; FitToClient(); EndUpdate(); end |
70 |
How can I convert the screen position (mouse) to surface position
|
69 |
Is is possible to show just the positive coordinates
|
68 |
Cartesian coordinates (positive coordinates are shown top-right to the origin)
|
67 |
Default coordinates (positive coordinates are shown bottom-right to the origin)
|
66 |
Is it possible to customize the path of the links orthogonally similar with Microsoft Visio tool
|
65 |
Does your control supports OLE Drag and Drop
// OLEDragDrop event - Occurs when a source component is dropped onto a target component when the source component determines that a drop can occur. procedure TWinForm1.AxSwimLane1_OLEDragDrop(sender: System.Object; e: AxEXSWIMLANELib._ISwimLaneEvents_OLEDragDropEvent); begin with AxSwimLane1 do begin OutputDebugString( e.data ); end end; // OLEStartDrag event - Occurs when the OLEDrag method is called. procedure TWinForm1.AxSwimLane1_OLEStartDrag(sender: System.Object; e: AxEXSWIMLANELib._ISwimLaneEvents_OLEStartDragEvent); begin // Data.SetData("some data to drag") end; with AxSwimLane1 do begin BeginUpdate(); OLEDropMode := EXSWIMLANELib.exOLEDropModeEnum.exOLEDropManual; with Pools.Add(TObject(-250),TObject(-150),TObject(500),TObject(250)) do begin Lane[EXSWIMLANELib.LaneTypeEnum.exLaneHorizontal].Children.Count := 2; Lane[EXSWIMLANELib.LaneTypeEnum.exLaneVertical].Children.Count := 1; end; with Elements do begin with Add('Click the Element wait for .5 second until + cursor is shown, to start <b>OLE Drag and Drop</b>',Nil,Nil) do begin CaptionSingleLine := EXSWIMLANELib.CaptionSingleLineEnum.exCaptionWordWrap; AutoSize := False; X := -125; Y := -105; Width := 256; Height := 56; end; with Add('Click the Element wait for .5 second until + cursor is shown, to start <b>OLE Drag and Drop</b>',Nil,Nil) do begin CaptionSingleLine := EXSWIMLANELib.CaptionSingleLineEnum.exCaptionWordWrap; AutoSize := False; X := -125; Width := 256; Height := 56; end; end; EndUpdate(); end |
64 |
Is it possible to disable customizing the path of a specified link
|
63 |
How do I let user customizes the link's path
with AxSwimLane1 do begin BeginUpdate(); AllowLinkControlPoint := EXSWIMLANELib.LinkControlPointEnum($ffffff80 Or Integer(EXSWIMLANELib.LinkControlPointEnum.exAllowChangeTo) Or Integer(EXSWIMLANELib.LinkControlPointEnum.exAllowChangeFrom) Or Integer(EXSWIMLANELib.LinkControlPointEnum.exOrthoArrange) Or Integer(EXSWIMLANELib.LinkControlPointEnum.exMiddleControlPoint) Or Integer(EXSWIMLANELib.LinkControlPointEnum.exControlPoint) Or Integer(EXSWIMLANELib.LinkControlPointEnum.exEndControlPoint) Or Integer(EXSWIMLANELib.LinkControlPointEnum.exStartControlPoint)); with Elements do begin Add('Element <sha ;;0>A',Nil,Nil); Add('Element <sha ;;0>B',TObject(164),TObject(64)); Add('Element <sha ;;0>B',TObject(0),TObject(132)); end; with Links do begin Add(AxSwimLane1.Elements.Item[TObject(1)],AxSwimLane1.Elements.Item[TObject(2)],Nil).CustomPath := '0.5,0.25,0.5,.75'; Add(AxSwimLane1.Elements.Item[TObject(3)],AxSwimLane1.Elements.Item[TObject(2)],Nil).CustomPath := '0.5,0.25,0.5,.75'; with Add(AxSwimLane1.Elements.Item[TObject(3)],AxSwimLane1.Elements.Item[TObject(1)],Nil) do begin ShowLinkType := EXSWIMLANELib.ShowLinkTypeEnum.exLinkRound; StartPos := EXSWIMLANELib.AlignmentEnum.LeftAlignment; end; end; Zoom := 200; FitToClient(); EndUpdate(); end |
62 |
How can I generate a picture/image/graph from my diagram
with AxSwimLane1 do begin with Elements do begin Add('Element A',Nil,Nil).ID := 'A'; Add('Element B',Nil,Nil).ID := 'B'; Add('Element C',Nil,Nil).ID := 'C'; Add('Element D',Nil,Nil).ID := 'D'; Add('Element E',Nil,Nil).ID := 'E'; Add('Element E',Nil,Nil).ID := 'F'; end; with Links do begin Add(AxSwimLane1.Elements.Item['A'],AxSwimLane1.Elements.Item['B'],Nil); Add(AxSwimLane1.Elements.Item['A'],AxSwimLane1.Elements.Item['C'],Nil); Add(AxSwimLane1.Elements.Item['B'],AxSwimLane1.Elements.Item['D'],Nil); Add(AxSwimLane1.Elements.Item['B'],AxSwimLane1.Elements.Item['C'],Nil); Add(AxSwimLane1.Elements.Item['A'],AxSwimLane1.Elements.Item['E'],Nil); Add(AxSwimLane1.Elements.Item['A'],AxSwimLane1.Elements.Item['F'],Nil); end; set_DefArrange(EXSWIMLANELib.DefArrangeEnum.exDefArrangeCompact,TObject(False)); Arrange(Nil); var_CopyTo := get_CopyTo('c:/temp/xtest.jpg'); OutputDebugString( '!!!check the file c:/temp/xtest.jpg!!!' ); end |
61 |
How can I generate a picture/image/graph from my diagram
with AxSwimLane1 do begin with Elements do begin Add('Element A',Nil,Nil).ID := 'A'; Add('Element B',Nil,Nil).ID := 'B'; Add('Element C',Nil,Nil).ID := 'C'; Add('Element D',Nil,Nil).ID := 'D'; Add('Element E',Nil,Nil).ID := 'E'; Add('Element E',Nil,Nil).ID := 'F'; end; with Links do begin Add(AxSwimLane1.Elements.Item['A'],AxSwimLane1.Elements.Item['B'],Nil); Add(AxSwimLane1.Elements.Item['A'],AxSwimLane1.Elements.Item['C'],Nil); Add(AxSwimLane1.Elements.Item['B'],AxSwimLane1.Elements.Item['D'],Nil); Add(AxSwimLane1.Elements.Item['B'],AxSwimLane1.Elements.Item['C'],Nil); Add(AxSwimLane1.Elements.Item['A'],AxSwimLane1.Elements.Item['E'],Nil); Add(AxSwimLane1.Elements.Item['A'],AxSwimLane1.Elements.Item['F'],Nil); end; set_DefArrange(EXSWIMLANELib.DefArrangeEnum.exDefArrangeCompact,TObject(False)); Arrange(Nil); with (ComObj.CreateComObject(ComObj.ProgIDToClassID('Exontrol.Print')) as EXPRINTLib.Print) do begin PrintExt := (AxSwimLane1.GetOcx() as EXSWIMLANELib.SwimLane).DefaultDispatch; CopyTo('c:/temp/xtest.jpg'); end; OutputDebugString( '!!!check the file c:/temp/xtest.jpg!!!' ); end |
60 |
How can I print the component
with AxSwimLane1 do begin with Elements do begin Add('Element <sha ;;0>A',Nil,Nil); Add('Element <sha ;;0>B',TObject(0),TObject(76)); with Add('Element <sha ;;0>C',TObject(-76),TObject(32)) do begin AutoSize := False; Height := 32; end; with Add('Element <sha ;;0>D',TObject(76),TObject(32)) do begin AutoSize := False; Height := 32; end; end; with Links do begin with Add(AxSwimLane1.Elements.Item[TObject(1)],AxSwimLane1.Elements.Item[TObject(2)],Nil) do begin StartPos := EXSWIMLANELib.AlignmentEnum.CenterAlignment; EndPos := EXSWIMLANELib.AlignmentEnum.CenterAlignment; end; with Add(AxSwimLane1.Elements.Item[TObject(2)],AxSwimLane1.Elements.Item[TObject(1)],Nil) do begin StartPos := EXSWIMLANELib.AlignmentEnum.CenterAlignment; EndPos := EXSWIMLANELib.AlignmentEnum.CenterAlignment; end; Add(AxSwimLane1.Elements.Item[TObject(3)],AxSwimLane1.Elements.Item[TObject(4)],Nil); with Add(AxSwimLane1.Elements.Item[TObject(4)],AxSwimLane1.Elements.Item[TObject(3)],Nil) do begin StartPos := EXSWIMLANELib.AlignmentEnum.LeftAlignment; EndPos := EXSWIMLANELib.AlignmentEnum.RightAlignment; end; end; with (ComObj.CreateComObject(ComObj.ProgIDToClassID('Exontrol.Print')) as EXPRINTLib.Print) do begin PrintExt := (AxSwimLane1.GetOcx() as EXSWIMLANELib.SwimLane).DefaultDispatch; Preview(); end; end |
59 |
How can I show direct-links
|
58 |
How can I show straight-links
|
57 |
How can I show round-links
|
56 |
I've tried to insert a "<br>" in the Caption property text and it just ignores it
with AxSwimLane1 do begin BeginUpdate(); with Elements do begin with Add('caption',Nil,Nil) do begin CaptionSingleLine := EXSWIMLANELib.CaptionSingleLineEnum.exCaptionWordWrap; Caption := 'first caption<br>second caption<br>third caption'; end; end; EndUpdate(); end |
55 |
How do I align the extra-caption
with AxSwimLane1 do begin BeginUpdate(); with Elements do begin with Add('caption',Nil,Nil) do begin CaptionAlign := EXSWIMLANELib.ContentAlignmentEnum.exTopLeft; AutoSize := False; Width := 128; Height := 64; ExtraCaption := 'extra-caption'; ExtraCaptionAlign := EXSWIMLANELib.ContentAlignmentEnum.exBottomRight; end; end; EndUpdate(); end |
54 |
How can I add an extra caption
|
53 |
I am using the reserve-neighbors feature, the question is how to shift left/right the neighbors instead of up/down
with AxSwimLane1 do begin BeginUpdate(); AllowMoveNeighbors := EXSWIMLANELib.MoveNeighborsEnum.exMoveNeighborsHorizontally; set_DefArrange(EXSWIMLANELib.DefArrangeEnum.exDefArrangeDir,TObject(1)); with Elements do begin Add('Element <sha ;;0>A',Nil,Nil); Add('Element <sha ;;0>B ( move it )',TObject(16),TObject(32)); Add('Element <sha ;;0>C',TObject(128),TObject(0)); end; EndUpdate(); end |
52 |
I am using the reserve-neighbors feature, the question is if possible to specify the distance between neighbors
with AxSwimLane1 do begin BeginUpdate(); AllowMoveNeighbors := EXSWIMLANELib.MoveNeighborsEnum.exMoveNeighborsVertically; set_DefArrange(EXSWIMLANELib.DefArrangeEnum.exDefArrangeDX,TObject(0)); set_DefArrange(EXSWIMLANELib.DefArrangeEnum.exDefArrangeDY,TObject(0)); with Elements do begin Add('Element <sha ;;0>A',Nil,Nil); Add('Element <sha ;;0>B ( move it )',TObject(0),TObject(32)); Add('Element <sha ;;0>C',TObject(0),TObject(64)); end; EndUpdate(); end |
51 |
How do I enable the reserve-neighbors feature
|
50 |
I've noticed that recently, the elements get compacted once the Arrange method is performed. How can I prevent that
with AxSwimLane1 do begin with Elements do begin Add('Element A',Nil,Nil).ID := 'A'; Add('Element B',Nil,Nil).ID := 'B'; Add('Element C',Nil,Nil).ID := 'C'; Add('Element D',Nil,Nil).ID := 'D'; Add('Element E',Nil,Nil).ID := 'E'; Add('Element E',Nil,Nil).ID := 'F'; end; with Links do begin Add(AxSwimLane1.Elements.Item['A'],AxSwimLane1.Elements.Item['B'],Nil); Add(AxSwimLane1.Elements.Item['A'],AxSwimLane1.Elements.Item['C'],Nil); Add(AxSwimLane1.Elements.Item['B'],AxSwimLane1.Elements.Item['D'],Nil); Add(AxSwimLane1.Elements.Item['B'],AxSwimLane1.Elements.Item['C'],Nil); Add(AxSwimLane1.Elements.Item['A'],AxSwimLane1.Elements.Item['E'],Nil); Add(AxSwimLane1.Elements.Item['A'],AxSwimLane1.Elements.Item['F'],Nil); end; set_DefArrange(EXSWIMLANELib.DefArrangeEnum.exDefArrangeCompact,TObject(False)); Arrange(Nil); end |
49 |
How can I move an element to a specified lane/phase/pool
with AxSwimLane1 do begin BeginUpdate(); set_DefPoolHeaderCaptionFormat(True,'<fgcolor 808080>Faza <off -4><b><font ;6>%i'); set_DefPoolHeaderCaptionFormat(False,'<fgcolor 808080>Culoar <off -4><b><font ;6>%i'); with Pools.Add(TObject(-100),TObject(-100),TObject(250),TObject(180)) do begin Lane[EXSWIMLANELib.LaneTypeEnum.exLaneHorizontal].Children.Count := 3; Lane[EXSWIMLANELib.LaneTypeEnum.exLaneVertical].Children.Count := 3; Lane[EXSWIMLANELib.LaneTypeEnum.exLaneVertical].Children.Item[TObject(1)].Header.Caption := '<fgcolor FF0000><b>NEW'; end; with Elements.Add('element 1',TObject(200),TObject(200)) do begin LaneID[True] := '0:H.0,0:V.0'; end; with Elements.Add('element 2',TObject(200),TObject(200)) do begin LaneID[True] := '0:H.2,0:V.2'; end; EndUpdate(); end |
48 |
Is it possible to add a link to show from bottom/down to top/up, rather that right to left (method-2)
// AddLink event - A new link has been added to the links collection. procedure TWinForm1.AxSwimLane1_AddLink(sender: System.Object; e: AxEXSWIMLANELib._ISwimLaneEvents_AddLinkEvent); begin with AxSwimLane1 do begin with e.link do begin end; end end; with AxSwimLane1 do begin with Elements do begin Add('Element <sha ;;0>A',Nil,Nil); Add('Element <sha ;;0>B',TObject(48),TObject(48)); end; with Links do begin Add(AxSwimLane1.Elements.Item[TObject(1)],AxSwimLane1.Elements.Item[TObject(2)],Nil); end; end |
47 |
Is it possible to add a link to show from bottom/down to top/up, rather that right to left (method-1)
with AxSwimLane1 do begin with Elements do begin Add('Element <sha ;;0>A',Nil,Nil); Add('Element <sha ;;0>B',TObject(48),TObject(48)); end; with Links do begin with Add(AxSwimLane1.Elements.Item[TObject(1)],AxSwimLane1.Elements.Item[TObject(2)],Nil) do begin StartPos := EXSWIMLANELib.AlignmentEnum.DownAlignment; EndPos := EXSWIMLANELib.AlignmentEnum.UpAlignment; end; end; end |
46 |
How do I enable the cross link support ( mixed )
with AxSwimLane1 do begin with Elements do begin Add('Element <sha ;;0>A',Nil,Nil); Add('Element <sha ;;0>B',TObject(0),TObject(76)); with Add('Element <sha ;;0>C',TObject(-76),TObject(32)) do begin AutoSize := False; Height := 32; end; with Add('Element <sha ;;0>D',TObject(76),TObject(32)) do begin AutoSize := False; Height := 32; end; end; with Links do begin with Add(AxSwimLane1.Elements.Item[TObject(1)],AxSwimLane1.Elements.Item[TObject(2)],Nil) do begin StartPos := EXSWIMLANELib.AlignmentEnum.CenterAlignment; EndPos := EXSWIMLANELib.AlignmentEnum.CenterAlignment; end; with Add(AxSwimLane1.Elements.Item[TObject(2)],AxSwimLane1.Elements.Item[TObject(1)],Nil) do begin StartPos := EXSWIMLANELib.AlignmentEnum.CenterAlignment; EndPos := EXSWIMLANELib.AlignmentEnum.CenterAlignment; end; Add(AxSwimLane1.Elements.Item[TObject(3)],AxSwimLane1.Elements.Item[TObject(4)],Nil); with Add(AxSwimLane1.Elements.Item[TObject(4)],AxSwimLane1.Elements.Item[TObject(3)],Nil) do begin StartPos := EXSWIMLANELib.AlignmentEnum.LeftAlignment; EndPos := EXSWIMLANELib.AlignmentEnum.RightAlignment; end; end; ShowLinks := Integer(EXSWIMLANELib.ShowExtendedLinksEnum.exShowCrossLinksMixt) Or Integer(EXSWIMLANELib.ShowExtendedLinksEnum.exShowExtendedLinks); end |
45 |
How do I enable the cross link support ( triangular )
with AxSwimLane1 do begin with Elements do begin Add('Element <sha ;;0>A',Nil,Nil); Add('Element <sha ;;0>B',TObject(0),TObject(76)); with Add('Element <sha ;;0>C',TObject(-76),TObject(32)) do begin AutoSize := False; Height := 32; end; with Add('Element <sha ;;0>D',TObject(76),TObject(32)) do begin AutoSize := False; Height := 32; end; end; with Links do begin with Add(AxSwimLane1.Elements.Item[TObject(1)],AxSwimLane1.Elements.Item[TObject(2)],Nil) do begin StartPos := EXSWIMLANELib.AlignmentEnum.CenterAlignment; EndPos := EXSWIMLANELib.AlignmentEnum.CenterAlignment; end; with Add(AxSwimLane1.Elements.Item[TObject(2)],AxSwimLane1.Elements.Item[TObject(1)],Nil) do begin StartPos := EXSWIMLANELib.AlignmentEnum.CenterAlignment; EndPos := EXSWIMLANELib.AlignmentEnum.CenterAlignment; end; Add(AxSwimLane1.Elements.Item[TObject(3)],AxSwimLane1.Elements.Item[TObject(4)],Nil); with Add(AxSwimLane1.Elements.Item[TObject(4)],AxSwimLane1.Elements.Item[TObject(3)],Nil) do begin StartPos := EXSWIMLANELib.AlignmentEnum.LeftAlignment; EndPos := EXSWIMLANELib.AlignmentEnum.RightAlignment; end; end; ShowLinks := Integer(EXSWIMLANELib.ShowExtendedLinksEnum.exShowCrossLinksTriangle) Or Integer(EXSWIMLANELib.ShowExtendedLinksEnum.exShowExtendedLinks); end |
44 |
How do I enable the cross link support ( rectangular )
with AxSwimLane1 do begin with Elements do begin Add('Element <sha ;;0>A',Nil,Nil); Add('Element <sha ;;0>B',TObject(0),TObject(76)); with Add('Element <sha ;;0>C',TObject(-76),TObject(32)) do begin AutoSize := False; Height := 32; end; with Add('Element <sha ;;0>D',TObject(76),TObject(32)) do begin AutoSize := False; Height := 32; end; end; with Links do begin with Add(AxSwimLane1.Elements.Item[TObject(1)],AxSwimLane1.Elements.Item[TObject(2)],Nil) do begin StartPos := EXSWIMLANELib.AlignmentEnum.CenterAlignment; EndPos := EXSWIMLANELib.AlignmentEnum.CenterAlignment; end; with Add(AxSwimLane1.Elements.Item[TObject(2)],AxSwimLane1.Elements.Item[TObject(1)],Nil) do begin StartPos := EXSWIMLANELib.AlignmentEnum.CenterAlignment; EndPos := EXSWIMLANELib.AlignmentEnum.CenterAlignment; end; Add(AxSwimLane1.Elements.Item[TObject(3)],AxSwimLane1.Elements.Item[TObject(4)],Nil); with Add(AxSwimLane1.Elements.Item[TObject(4)],AxSwimLane1.Elements.Item[TObject(3)],Nil) do begin StartPos := EXSWIMLANELib.AlignmentEnum.LeftAlignment; EndPos := EXSWIMLANELib.AlignmentEnum.RightAlignment; end; end; ShowLinks := Integer(EXSWIMLANELib.ShowExtendedLinksEnum.exShowCrossLinksRect) Or Integer(EXSWIMLANELib.ShowExtendedLinksEnum.exShowExtendedLinks); end |
43 |
How do I show a link frmo bottom to top, or reverse, not from left to right
with AxSwimLane1 do begin with Elements do begin Add('Element <sha ;;0>A',Nil,Nil); Add('Element <sha ;;0>B',TObject(0),TObject(64)); end; with Links do begin with Add(AxSwimLane1.Elements.Item[TObject(1)],AxSwimLane1.Elements.Item[TObject(2)],Nil) do begin StartPos := EXSWIMLANELib.AlignmentEnum.CenterAlignment; EndPos := EXSWIMLANELib.AlignmentEnum.CenterAlignment; end; end; end |
42 |
Is it possible to control the links, so that they are always centered
|
41 |
What options to align the elements do I have if I use Arrange method
with AxSwimLane1 do begin BeginUpdate(); ShowGridLines := True; with Elements do begin h1 := Add('Top Alignment',Nil,Nil).ID; Add('Element',Nil,Nil); Add('Element',Nil,Nil); Add('Element',Nil,Nil); h2 := Add('Center Alignment',Nil,TObject(96)).ID; Add('Element',Nil,TObject(96)); Add('Element',Nil,TObject(96)); Add('Element',Nil,TObject(96)); h3 := Add('Bottom Alignment',Nil,TObject(178)).ID; Add('Element',Nil,TObject(192)); Add('Element',Nil,TObject(192)); Add('Element',Nil,TObject(192)); end; with Links do begin Add(AxSwimLane1.Elements.Item[TObject(1)],AxSwimLane1.Elements.Item[TObject(2)],Nil); Add(AxSwimLane1.Elements.Item[TObject(1)],AxSwimLane1.Elements.Item[TObject(3)],Nil); Add(AxSwimLane1.Elements.Item[TObject(2)],AxSwimLane1.Elements.Item[TObject(4)],Nil); Add(AxSwimLane1.Elements.Item[TObject(2)],AxSwimLane1.Elements.Item[TObject(3)],Nil); Add(AxSwimLane1.Elements.Item[TObject(5)],AxSwimLane1.Elements.Item[TObject(6)],Nil); Add(AxSwimLane1.Elements.Item[TObject(5)],AxSwimLane1.Elements.Item[TObject(7)],Nil); Add(AxSwimLane1.Elements.Item[TObject(6)],AxSwimLane1.Elements.Item[TObject(8)],Nil); Add(AxSwimLane1.Elements.Item[TObject(6)],AxSwimLane1.Elements.Item[TObject(7)],Nil); Add(AxSwimLane1.Elements.Item[TObject(9)],AxSwimLane1.Elements.Item[TObject(10)],Nil); Add(AxSwimLane1.Elements.Item[TObject(9)],AxSwimLane1.Elements.Item[TObject(11)],Nil); Add(AxSwimLane1.Elements.Item[TObject(10)],AxSwimLane1.Elements.Item[TObject(12)],Nil); Add(AxSwimLane1.Elements.Item[TObject(10)],AxSwimLane1.Elements.Item[TObject(11)],Nil); end; set_DefArrange(EXSWIMLANELib.DefArrangeEnum.exDefArrangeAlign,TObject(0)); Arrange(TObject(h1)); set_DefArrange(EXSWIMLANELib.DefArrangeEnum.exDefArrangeAlign,TObject(1)); Arrange(TObject(h2)); set_DefArrange(EXSWIMLANELib.DefArrangeEnum.exDefArrangeAlign,TObject(2)); Arrange(TObject(h3)); EndUpdate(); end |
40 |
Is there an auto-arrange feature that will display the flow-chart centered and zoomed correctly after we are finished building it
|
39 |
Is it possible to change the distance between elements, when calling the Arrange method
with AxSwimLane1 do begin with Elements do begin Add('Element A',Nil,Nil).ID := 'A'; Add('Element B',Nil,Nil).ID := 'B'; Add('Element C',Nil,Nil).ID := 'C'; Add('Element D',Nil,Nil).ID := 'D'; end; with Links do begin Add(AxSwimLane1.Elements.Item['A'],AxSwimLane1.Elements.Item['B'],Nil); Add(AxSwimLane1.Elements.Item['A'],AxSwimLane1.Elements.Item['C'],Nil); Add(AxSwimLane1.Elements.Item['B'],AxSwimLane1.Elements.Item['D'],Nil); Add(AxSwimLane1.Elements.Item['B'],AxSwimLane1.Elements.Item['C'],Nil); end; set_DefArrange(EXSWIMLANELib.DefArrangeEnum.exDefArrangeDX,TObject(0)); set_DefArrange(EXSWIMLANELib.DefArrangeEnum.exDefArrangeDY,TObject(0)); Arrange(Nil); end |