IWxWorkspace.CreateRoundedRectangleBaloon

Syntax

CreateRoundedRectangleBaloon: IWxRoundedRectangleBaloon;

CreateRoundedRectangleBaloon(): Prognoz.Platform.Interop.Andy.IWxRoundedRectangleBaloon;

Description

The CreateRoundedRectangleBaloon method creates a rounded rectangular callout.

Example

Executing the example requires a form with the Button and UiWorkspaceObjectNet components with the Button1 and UiWorkspaceObjectNet1 identifiers respectively. A corresponding repository object must be connected to UiWorkspaceObjectNet.

Add links to the Andy, Drawing, Metabase system assemblies.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    WS: IWxWorkspace;
    Rect: IWxRoundedRectangleBaloon;
Begin
    WS := UiWorkspace1.WxWorkspace;
    WS.BeginUpdate;
    Rect := WS.CreateRoundedRectangleBaloon;
    WS.EndUpdate;
End Sub Button1OnClick;
Imports Prognoz.Platform.Interop.Andy;
Imports Prognoz.Platform.Interop.Drawing;

 
Private Sub button1_Click(sender: System.Object; e: System.EventArgs);
Var
    WS: IWxWorkspace;
    Rect: IWxRoundedRectangleBaloon;
Begin
    WS := uiWorkspaceNet1.WxWorkspace;
    WS.BeginUpdate();
    Rect := WS.CreateRoundedRectangleBaloon();
    WS.EndUpdate();
End Sub;

After executing the example a rounded rectangular callout is created in a workspace:

See also:

IWxWorkspace