IWxSelectionStyle.ActiveSelectAndMovePointColor

Syntax

ActiveSelectAndMovePointColor: IGxColor;

ActiveSelectAndMovePointColor: Prognoz.Platform.Interop.Drawing.IGxColor;

Description

The ActiveSelectAndMovePointColor property determines color of points of selected objects when working in the selection and movement mode.

Comments

The property is relevant, if the IWxView.ActiveTool property is set to WxTool.SelectAndMove.

Example

Executing the example requires a form with the Button1 button, the WorkspaceBox component named WorkspaceBox1 and a data source for the WorkspaceBox1.

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

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    WS: IWxWorkspace;
    View: IWxView;
    Rect: IWxEllipseBaloon;
Begin
    WS := UiWorkspace1.WxWorkspace;
    WS.BeginUpdate;
    Rect := WS.CreateEllipseBaloon;
    WS.EndUpdate;
    View := WorkspaceBox1.View;
    View.ActiveTool := WxTool.SelectAndMove;
    View.SelectionStyle.ActiveSelectAndMovePointColor := GxColor.FromName("Red");
End Sub Button1OnClick;
Imports Prognoz.Platform.Interop.Andy;
Imports Prognoz.Platform.Interop.Workspace;
Imports Prognoz.Platform.Interop.Drawing;

 
Private Sub button1_Click(sender: System.Object; e: System.EventArgs);
Var
    WS: IWxWorkspace;
    View: IWxView;
    Rect: IWxEllipseBaloon;
    Color: GxColorClassClass = 
New GxColorClassClass();
Begin
    WS := uiWorkspaceNet1.WxWorkspace;
    WS.BeginUpdate();
    Rect := WS.CreateEllipseBaloon();
    WS.EndUpdate();
    View := workspaceBoxNet1.View;
    View.ActiveTool := WxTool.wtlSelectAndMove;
    View.SelectionStyle.ActiveSelectAndMovePointColor := Color.FromName(
"Red");
End Sub;

After executing the example clicking the button enables the mode of selection and movement of workspace objects. On selection the objects are displayed as red points.

See also:

IWxSelectionStyle