|
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 do
begin
BeginUpdate();
AllowDesignHeader := EXSWIMLANELib.AllowDesignHeaderEnum.exDesignHeaderLock;
AllowLinkControlPoint := Integer(EXSWIMLANELib.LinkControlPointEnum.exAllowChangeTo) Or Integer(EXSWIMLANELib.LinkControlPointEnum.exAllowChangeFrom) Or Integer(EXSWIMLANELib.LinkControlPointEnum.exEndControlPoint) Or Integer(EXSWIMLANELib.LinkControlPointEnum.exStartControlPoint);
AllowPoolContentUpdate := EXSWIMLANELib.AllowPoolContentUpdateEnum.exEnableCtrlMixt;
with Elements do
begin
Add('Node <b>1',TObject(-64),TObject(-64));
Add('Node <b>2',TObject(64),TObject(0)).Selected := True;
Add('Node <b>3',TObject(64),TObject(-64));
end;
with Pools.Add(TObject(-100),TObject(-100),TObject(250),TObject(160)) do
begin
Lane[EXSWIMLANELib.LaneTypeEnum.exLaneHorizontal].Children.Count := 2;
Lane[EXSWIMLANELib.LaneTypeEnum.exLaneVertical].Children.Count := 2;
end;
Links.Add(AxSwimLane1.Elements.Item[TObject(1)],AxSwimLane1.Elements.Item[TObject(2)],'L1');
EndUpdate();
end
|
|
152
|
Disable resizing the elements of the pool/lane/phase when the user resizes it by drag and drop
with AxSwimLane1 do
begin
BeginUpdate();
AllowDesignHeader := EXSWIMLANELib.AllowDesignHeaderEnum.exDesignHeaderLock;
AllowLinkControlPoint := Integer(EXSWIMLANELib.LinkControlPointEnum.exAllowChangeTo) Or Integer(EXSWIMLANELib.LinkControlPointEnum.exAllowChangeFrom) Or Integer(EXSWIMLANELib.LinkControlPointEnum.exEndControlPoint) Or Integer(EXSWIMLANELib.LinkControlPointEnum.exStartControlPoint);
AllowPoolContentUpdate := EXSWIMLANELib.AllowPoolContentUpdateEnum.exDisable;
with Elements do
begin
Add('Node <b>1',TObject(-64),TObject(-64));
Add('Node <b>2',TObject(64),TObject(0)).Selected := True;
Add('Node <b>3',TObject(64),TObject(-64));
end;
with Pools.Add(TObject(-100),TObject(-100),TObject(250),TObject(160)) do
begin
Lane[EXSWIMLANELib.LaneTypeEnum.exLaneHorizontal].Children.Count := 2;
Lane[EXSWIMLANELib.LaneTypeEnum.exLaneVertical].Children.Count := 2;
end;
Links.Add(AxSwimLane1.Elements.Item[TObject(1)],AxSwimLane1.Elements.Item[TObject(2)],'L1');
EndUpdate();
end
|
|
151
|
Generates a PDF document on a single A0 page with no margins
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;
ArrowSize := 8;
ArrowColor := $ffffff;
ArrowFrameColor := $0;
end;
end;
FitToClient();
EndUpdate();
var_CopyTo := get_CopyTo('c:/temp/sample.pdf|33.11 in x 46.81 in|0 0 0 0|single');
end
|
|
150
|
Generates a PDF document that scales the content proportionally by 75% using B3 pages (default margins)
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;
ArrowSize := 8;
ArrowColor := $ffffff;
ArrowFrameColor := $0;
end;
end;
FitToClient();
EndUpdate();
var_CopyTo := get_CopyTo('c:/temp/sample.pdf|6.93 in x 9.84 in||75%');
end
|
|
149
|
Generates a PDF document that fits the content exactly to 3 A4 pages wide by 2 pages tall (default margins)
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;
ArrowSize := 8;
ArrowColor := $ffffff;
ArrowFrameColor := $0;
end;
end;
FitToClient();
EndUpdate();
var_CopyTo := get_CopyTo('c:/temp/sample.pdf|||3 x 2f');
end
|
|
148
|
Generates a PDF document that fits the content to 3 A3-landscape pages wide by 2 pages tall (custom margins)
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;
ArrowSize := 8;
ArrowColor := $ffffff;
ArrowFrameColor := $0;
end;
end;
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
|
|
147
|
Generates a PDF document that fits the content to 2 Letter pages tall, automatically determining the number of pages wide (default margins)
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;
ArrowSize := 8;
ArrowColor := $ffffff;
ArrowFrameColor := $0;
end;
end;
FitToClient();
EndUpdate();
var_CopyTo := get_CopyTo('c:/temp/sample.pdf|8.50 in x 11.00 in||x 2');
end
|
|
146
|
Generates a PDF document that fits the content to 1 page wide and as many A4 pages tall as required (default margins)
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;
ArrowSize := 8;
ArrowColor := $ffffff;
ArrowFrameColor := $0;
end;
end;
FitToClient();
EndUpdate();
var_CopyTo := get_CopyTo('c:/temp/sample.pdf|||1 x');
end
|
|
145
|
Generates a PDF document on a single A4 page (default margins)
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;
ArrowSize := 8;
ArrowColor := $ffffff;
ArrowFrameColor := $0;
end;
end;
FitToClient();
EndUpdate();
var_CopyTo := get_CopyTo('c:/temp/sample.pdf|||single');
end
|
|
144
|
Defines the colors, to display overlapping links

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));
Add('Node <b>4',TObject(16),TObject(-48));
Add('Node <b>5',TObject(-1024),TObject(-48));
Add('Node <b>6',TObject(16),TObject(512));
end;
Links.Add(AxSwimLane1.Elements.Item[TObject(1)],AxSwimLane1.Elements.Item[TObject(2)],'L1');
Links.Add(AxSwimLane1.Elements.Item[TObject(3)],AxSwimLane1.Elements.Item[TObject(2)],'L2');
Links.Add(AxSwimLane1.Elements.Item[TObject(2)],AxSwimLane1.Elements.Item[TObject(1)],'L3');
ShowLinks := Integer(EXSWIMLANELib.ShowExtendedLinksEnum.exChangeColorOnOverlap) Or Integer(EXSWIMLANELib.ShowExtendedLinksEnum.exShowCrossLinksRect) Or Integer(EXSWIMLANELib.ShowExtendedLinksEnum.exShowExtendedLinks);
OverlapLinksColors := 'red,orange';
LinksColor := Color.FromArgb(128,128,128);
AxisStyle := EXSWIMLANELib.LinesStyleEnum.exNoLines;
ShowGridLines := False;
EndUpdate();
end
|
|
143
|
The exPreventOverlapMixt flag must always be used alongside either the exPreventOverlap or exChangeColorOnOverlap flag. When used with the exPreventOverlap flag, it ensures that links avoid overlapping with elements or obstacles, enabling their paths to include both rectangular and diagonal lines. When combined with the exChangeColorOnOverlap flag, overlapping links alternately adjust their width in addition to changing colors (sample 2)

with AxSwimLane1 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));
Add('Node <b>4',TObject(16),TObject(-48));
Add('Node <b>5',TObject(-1024),TObject(-48));
Add('Node <b>6',TObject(16),TObject(512));
end;
Links.Add(AxSwimLane1.Elements.Item[TObject(1)],AxSwimLane1.Elements.Item[TObject(2)],'L1');
Links.Add(AxSwimLane1.Elements.Item[TObject(3)],AxSwimLane1.Elements.Item[TObject(2)],'L2');
Links.Add(AxSwimLane1.Elements.Item[TObject(2)],AxSwimLane1.Elements.Item[TObject(1)],'L3');
ShowLinks := Integer(EXSWIMLANELib.ShowExtendedLinksEnum.exChangeColorOnOverlap) Or Integer(EXSWIMLANELib.ShowExtendedLinksEnum.exPreventOverlapMixt) Or Integer(EXSWIMLANELib.ShowExtendedLinksEnum.exShowCrossLinksRect) Or Integer(EXSWIMLANELib.ShowExtendedLinksEnum.exShowExtendedLinks);
LinksColor := Color.FromArgb(128,128,128);
AxisStyle := EXSWIMLANELib.LinesStyleEnum.exNoLines;
ShowGridLines := False;
EndUpdate();
end
|
|
142
|
The exChangeColorOnOverlap flag changes the color for links in areas where they overlap with other links, enhancing clarity and distinction between them

with AxSwimLane1 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));
Add('Node <b>4',TObject(16),TObject(-48));
Add('Node <b>5',TObject(-1024),TObject(-48));
Add('Node <b>6',TObject(16),TObject(512));
end;
Links.Add(AxSwimLane1.Elements.Item[TObject(1)],AxSwimLane1.Elements.Item[TObject(2)],'L1');
Links.Add(AxSwimLane1.Elements.Item[TObject(3)],AxSwimLane1.Elements.Item[TObject(2)],'L2');
Links.Add(AxSwimLane1.Elements.Item[TObject(2)],AxSwimLane1.Elements.Item[TObject(1)],'L3');
ShowLinks := Integer(EXSWIMLANELib.ShowExtendedLinksEnum.exChangeColorOnOverlap) Or Integer(EXSWIMLANELib.ShowExtendedLinksEnum.exShowCrossLinksRect) Or Integer(EXSWIMLANELib.ShowExtendedLinksEnum.exShowExtendedLinks);
LinksColor := Color.FromArgb(128,128,128);
AxisStyle := EXSWIMLANELib.LinesStyleEnum.exNoLines;
ShowGridLines := False;
EndUpdate();
end
|
|
141
|
The exPreventOverlapMixt flag must always be used alongside either the exPreventOverlap or exChangeColorOnOverlap flag. When used with the exPreventOverlap flag, it ensures that links avoid overlapping with elements or obstacles, enabling their paths to include both rectangular and diagonal lines. When combined with the exChangeColorOnOverlap flag, overlapping links alternately adjust their width in addition to changing colors (sample 1)

with AxSwimLane1 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));
Add('Node <b>4',TObject(16),TObject(-48));
Add('Node <b>5',TObject(-1024),TObject(-48));
Add('Node <b>6',TObject(16),TObject(512));
end;
Links.Add(AxSwimLane1.Elements.Item[TObject(1)],AxSwimLane1.Elements.Item[TObject(2)],'L1');
Links.Add(AxSwimLane1.Elements.Item[TObject(3)],AxSwimLane1.Elements.Item[TObject(2)],'L2');
Links.Add(AxSwimLane1.Elements.Item[TObject(2)],AxSwimLane1.Elements.Item[TObject(1)],'L3');
ShowLinks := Integer(EXSWIMLANELib.ShowExtendedLinksEnum.exPreventOverlap) Or Integer(EXSWIMLANELib.ShowExtendedLinksEnum.exPreventOverlapMixt) Or Integer(EXSWIMLANELib.ShowExtendedLinksEnum.exShowCrossLinksRect) Or Integer(EXSWIMLANELib.ShowExtendedLinksEnum.exShowExtendedLinks);
LinksColor := Color.FromArgb(128,128,128);
AxisStyle := EXSWIMLANELib.LinesStyleEnum.exNoLines;
ShowGridLines := False;
EndUpdate();
end
|
|
140
|
The exPreventOverlap flag adjusts the links to prevent them from overlapping the connected objects. The exPreventOverlap option calculates the path between A and B using the A* (A-star) pathfinding algorithm, which can be a time-consuming operation

with AxSwimLane1 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));
Add('Node <b>4',TObject(16),TObject(-48));
Add('Node <b>5',TObject(-1024),TObject(-48));
Add('Node <b>6',TObject(16),TObject(512));
end;
Links.Add(AxSwimLane1.Elements.Item[TObject(1)],AxSwimLane1.Elements.Item[TObject(2)],'L1');
Links.Add(AxSwimLane1.Elements.Item[TObject(3)],AxSwimLane1.Elements.Item[TObject(2)],'L2');
Links.Add(AxSwimLane1.Elements.Item[TObject(2)],AxSwimLane1.Elements.Item[TObject(1)],'L3');
ShowLinks := Integer(EXSWIMLANELib.ShowExtendedLinksEnum.exPreventOverlap) Or Integer(EXSWIMLANELib.ShowExtendedLinksEnum.exShowCrossLinksRect) Or Integer(EXSWIMLANELib.ShowExtendedLinksEnum.exShowExtendedLinks);
LinksColor := Color.FromArgb(128,128,128);
AxisStyle := EXSWIMLANELib.LinesStyleEnum.exNoLines;
ShowGridLines := False;
EndUpdate();
end
|
|
139
|
How can I replace or add an icon at runtime

with AxSwimLane1 do
begin
BeginUpdate();
ReplaceIcon('gAAAABgYACEHgUJFEEAAWhUJCEJEEJggEhMCYEXjUbjkJQECj8gj8hAEjkshYEpk8kf8ClsulsvAExmcvf83js5nU7nkCeEcn8boMaocXosCB9Hn09pkzcEuoL/fE+Ok' +
'YB0gB9YhIHrddgVcr9aktZADAD8+P8CgIA==',Nil);
ReplaceIcon('C:\images\favicon.ico',TObject(0));
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 <img>1</img>',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();
end
|
|
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.
procedure TWinForm1.AxSwimLane1_LayoutEndChanging(sender: System.Object; e: AxEXSWIMLANELib._ISwimLaneEvents_LayoutEndChangingEvent);
begin
with AxSwimLane1 do
begin
OutputDebugString( 'LayoutEndChanging' );
OutputDebugString( FormatABC('value = 18 ? `exActionContextMenuObject` : 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 = 18 ? `exActionContextMenuObject` : value',TObject(e.operation),Nil,Nil) );
end
end;
with AxSwimLane1 do
begin
BeginUpdate();
AllowDesignHeader := EXSWIMLANELib.AllowDesignHeaderEnum.exDesignHeaderLock;
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;
with Pools.Add(TObject(-100),TObject(-100),TObject(250),TObject(160)) do
begin
Lane[EXSWIMLANELib.LaneTypeEnum.exLaneHorizontal].Children.Count := 2;
Lane[EXSWIMLANELib.LaneTypeEnum.exLaneVertical].Children.Count := 2;
end;
Links.Add(AxSwimLane1.Elements.Item[TObject(1)],AxSwimLane1.Elements.Item[TObject(2)],'L1');
EndUpdate();
OutputDebugString( 'Right-Click the pool, element or the link to open its context menu, and change a property of it' );
end
|
|
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.
procedure TWinForm1.AxSwimLane1_LayoutEndChanging(sender: System.Object; e: AxEXSWIMLANELib._ISwimLaneEvents_LayoutEndChangingEvent);
begin
with AxSwimLane1 do
begin
OutputDebugString( 'LayoutEndChanging' );
OutputDebugString( FormatABC('value = 17 ? `exContextMenuObject` : 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 = 17 ? `exContextMenuObject` : value',TObject(e.operation),Nil,Nil) );
end
end;
with AxSwimLane1 do
begin
BeginUpdate();
AllowDesignHeader := EXSWIMLANELib.AllowDesignHeaderEnum.exDesignHeaderLock;
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;
with Pools.Add(TObject(-100),TObject(-100),TObject(250),TObject(160)) do
begin
Lane[EXSWIMLANELib.LaneTypeEnum.exLaneHorizontal].Children.Count := 2;
Lane[EXSWIMLANELib.LaneTypeEnum.exLaneVertical].Children.Count := 2;
end;
Links.Add(AxSwimLane1.Elements.Item[TObject(1)],AxSwimLane1.Elements.Item[TObject(2)],'L1');
EndUpdate();
OutputDebugString( 'Right-Click the pool, element or the link to open its context menu' );
end
|
|
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.
procedure TWinForm1.AxSwimLane1_LayoutEndChanging(sender: System.Object; e: AxEXSWIMLANELib._ISwimLaneEvents_LayoutEndChangingEvent);
begin
with AxSwimLane1 do
begin
OutputDebugString( 'LayoutEndChanging' );
OutputDebugString( FormatABC('value = 16 ? `exMoveLane` : 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 = 16 ? `exMoveLane` : value',TObject(e.operation),Nil,Nil) );
end
end;
with AxSwimLane1 do
begin
BeginUpdate();
AllowDesignHeader := EXSWIMLANELib.AllowDesignHeaderEnum.exDesignHeaderLock;
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;
with Pools.Add(TObject(-100),TObject(-100),TObject(250),TObject(160)) do
begin
Lane[EXSWIMLANELib.LaneTypeEnum.exLaneHorizontal].Children.Count := 2;
Lane[EXSWIMLANELib.LaneTypeEnum.exLaneVertical].Children.Count := 2;
end;
Links.Add(AxSwimLane1.Elements.Item[TObject(1)],AxSwimLane1.Elements.Item[TObject(2)],'L1');
EndUpdate();
OutputDebugString( 'Click the lane''s header to drag to a new position' );
end
|
|
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.
procedure TWinForm1.AxSwimLane1_LayoutEndChanging(sender: System.Object; e: AxEXSWIMLANELib._ISwimLaneEvents_LayoutEndChangingEvent);
begin
with AxSwimLane1 do
begin
OutputDebugString( 'LayoutEndChanging' );
OutputDebugString( FormatABC('value = 15 ? `exResizeLane` : 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 = 15 ? `exResizeLane` : value',TObject(e.operation),Nil,Nil) );
end
end;
with AxSwimLane1 do
begin
BeginUpdate();
AllowDesignHeader := EXSWIMLANELib.AllowDesignHeaderEnum.exDesignHeaderLock;
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;
with Pools.Add(TObject(-100),TObject(-100),TObject(250),TObject(160)) do
begin
Lane[EXSWIMLANELib.LaneTypeEnum.exLaneHorizontal].Children.Count := 2;
Lane[EXSWIMLANELib.LaneTypeEnum.exLaneVertical].Children.Count := 2;
end;
Links.Add(AxSwimLane1.Elements.Item[TObject(1)],AxSwimLane1.Elements.Item[TObject(2)],'L1');
EndUpdate();
OutputDebugString( 'Click the pool''s header to resize it' );
end
|
|
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.
procedure TWinForm1.AxSwimLane1_LayoutEndChanging(sender: System.Object; e: AxEXSWIMLANELib._ISwimLaneEvents_LayoutEndChangingEvent);
begin
with AxSwimLane1 do
begin
OutputDebugString( 'LayoutEndChanging' );
OutputDebugString( FormatABC('value = 14 ? `exResizePoolHeader` : 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 = 14 ? `exResizePoolHeader` : 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).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( 'Click the pool''s header to resize it' );
end
|
|
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.
procedure TWinForm1.AxSwimLane1_LayoutEndChanging(sender: System.Object; e: AxEXSWIMLANELib._ISwimLaneEvents_LayoutEndChangingEvent);
begin
with AxSwimLane1 do
begin
OutputDebugString( 'LayoutEndChanging' );
OutputDebugString( FormatABC('value = 13 ? `exMovePool` : 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 = 13 ? `exMovePool` : 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).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( 'Click a pool and drag to reposition it' );
end
|
|
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.
procedure TWinForm1.AxSwimLane1_LayoutEndChanging(sender: System.Object; e: AxEXSWIMLANELib._ISwimLaneEvents_LayoutEndChangingEvent);
begin
with AxSwimLane1 do
begin
OutputDebugString( 'LayoutEndChanging' );
OutputDebugString( FormatABC('value = 12 ? `exResizePool` : 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 = 12 ? `exResizePool` : 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).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( 'Resize a pool' );
end
|
|
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.
procedure TWinForm1.AxSwimLane1_LayoutEndChanging(sender: System.Object; e: AxEXSWIMLANELib._ISwimLaneEvents_LayoutEndChangingEvent);
begin
with AxSwimLane1 do
begin
OutputDebugString( 'LayoutEndChanging' );
OutputDebugString( FormatABC('value = 11 ? `exCreatePool` : 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 = 11 ? `exCreatePool` : 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).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( 'Hold SHIFT, double-click on the surface, and immediately drag to a new position to create a new pool' );
end
|
|
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.
procedure TWinForm1.AxSwimLane1_LayoutEndChanging(sender: System.Object; e: AxEXSWIMLANELib._ISwimLaneEvents_LayoutEndChangingEvent);
begin
with AxSwimLane1 do
begin
OutputDebugString( 'LayoutEndChanging' );
OutputDebugString( FormatABC('value = 10 ? `exDesignMode` : 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 = 10 ? `exDesignMode` : 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).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( 'Click the Design Menu and select one of the options' );
end
|
|
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
// 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 = 7 ? `exCreateObject` : 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 = 7 ? `exCreateObject` : 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).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( 'Double-click on the surface and immediately drag to a new position to create an element' );
end
|
|
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
with AxSwimLane1 do
begin
OutputDebugString( FormatABC('value format ``',TObject(1000),Nil,Nil) );
end
|
|
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
// 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 );
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 );
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');
FocusLink := 'L1';
EndUpdate();
end
|
|
113
|
The caption is displayed on the back, so the picture overrides it. How can I place the caption on the foreground

with AxSwimLane1 do
begin
BeginUpdate();
DrawPartsOrder := 'extracaption,extrapicture,picture,check,caption,client';
set_HTMLPicture('pic1','c:\exontrol\images\sun.png');
with Elements.Add('<b>Element',Nil,Nil) do
begin
PicturesAlign := EXSWIMLANELib.ContentAlignmentEnum.exMiddleCenter;
CaptionAlign := EXSWIMLANELib.ContentAlignmentEnum.exMiddleCenter;
Pictures := 'pic1';
end;
EndUpdate();
end
|
|
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

with AxSwimLane1 do
begin
with Elements.Add('<solidline><b>Header</b></solidline><br>Line1<r><a ;exp=show lines>+</a><br>Line2<br>Line3',Nil,Nil) do
begin
CaptionSingleLine := EXSWIMLANELib.CaptionSingleLineEnum.exCaptionBreakWrap;
end;
end
|
|
110
|
Draws a frame arround the link's arrow

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;
ArrowSize := 8;
ArrowColor := $ffffff;
ArrowFrameColor := $0;
end;
end;
FitToClient();
EndUpdate();
end
|
|
109
|
Draws a frame arround the arrow for all links

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));
LinksArrowSize := 8;
LinksArrowColor := Color.FromArgb(255,255,255);
LinksArrowFrameColor := Color.FromArgb(0,0,0);
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;
FitToClient();
EndUpdate();
end
|
|
108
|
Change the size to display the arrow of the link

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;
ArrowSize := 8;
end;
end;
FitToClient();
EndUpdate();
end
|
|
107
|
Change the size to display the arrows for all links

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));
LinksArrowSize := 8;
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;
FitToClient();
EndUpdate();
end
|
|
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

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;
end;
end
|
|
102
|
Display a custom tooltip
// 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
ShowToolTip('new content','',Nil,'+8','+8');
end
end;
|
|
101
|
Shows the tooltip of the object moved relative to its default position
// 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
ShowToolTip('<null>','<null>',Nil,'+8','+8');
end
end;
with AxSwimLane1 do
begin
Elements.Add('Element with a Tooltip',Nil,Nil).ToolTip := 'This is a bit of text that should be displayed when cursor hovers the element.';
end
|