IWxView.ExplorerMode

Syntax

ExplorerMode: Boolean;

ExplorerMode: boolean;

Description

The ExplorerMode property determines the shapes selection when IWxView.ActiveTool is set in SelectOnly.

Comments

If the property is set True, only the text within objects can be selected, if the property is set to False, the whole object can be selected.

The default property value is True.

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;
    arrow: IWxArrow;
    ellipse: IWxEllipse;
Begin
    // Get workspace for editing
    ws := UiWorkspace1.WxWorkspace;
    view := ws.CreateView;
    view := ws.Views.Item(0);
    ellipse := ws.CreateEllipse;
    arrow := ws.CreateArrow;
    Arrow.FirstPoint := New GxPointF.Create(1010);
    Arrow.LastPoint := New GxPointF.Create(319);
    ellipse := ws.CreateEllipse;
    view.ActiveTool := WxTool.SelectOnly;
    view.ExplorerMode := False;
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;

    arrow: IWxArrow;
    ellipse: IWxEllipse;
    PinPoint: GxPointF = 
New GxPointFClass();
Begin
    
// Get workspace for editing
    ws := uiWorkspaceNet1.WxWorkspace;
    view := ws.CreateView();
    view := ws.Views.Item[
0];
    arrow := ws.CreateArrow();
    PinPoint.Create(
1010);
    Arrow.FirstPoint := PinPoint;
    PinPoint.Create(
319);
    Arrow.LastPoint := PinPoint;
    ellipse := ws.CreateEllipse();
    view.ActiveTool := WxTool.wtlSelectOnly;
    view.ExplorerMode := 
False;
End Sub;

After executing the example the SelectOnly mode is set and selection of the whole object is enabled.

See also:

IWxView