IWorkspaceBox.ActiveTool

Syntax

ActiveTool: WxTool;

Description

The ActivTool property determines the active tool of the workspace.

Example

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

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Begin
    WorkspaceBox1.ActiveTool := WxTool.Hand;
End Sub Button1OnClick;

On pressing the button the hand-shaped pointer that enables to change the workspace viewable area is selected as an active tool.

See also:

IWorkspaceBox