CreateBoxArrow: IWxBoxArrow;
The CreateBoxArrow method creates an arrow callout.
Executing the example requires an existing ws object of the IWxWorkspace type.
Sub UserProc;
Var
ws: IWxWorkspace;
BArrow : IWxBoxArrow;
Style : IWxStyle;
Begin
BArrow := ws.CreateBoxArrow;
BArrow.Id := "BoxArrow1";
BArrow.ArrowHeightOffset := 3;
BArrow.ArrowWidthOffset := 25;
BArrow.Angle := 40;
Style := ws.CreateStyle;
Style.BackgroundBrushForeColor := GxColor.FromName("Red");
Style.ShadowBrushForeColor := New GxColor.CreateRGB(0,129,255);
Style.ShadowBrushBackColor := New GxColor.CreateRGB(255,87,192);
Style.ShadowBrushPattern := GxBrushPattern.Diagonals;
BArrow.Style := Style;
End Sub UserProc;
After executing the example an arrow callout is created in a workspace, and a specific formatting style is created for this callout.
See also: