Click or drag to resize
ToolControlManager Class
Manages Tool Controls hosted together with browser Tool Windows.
A Tool Control is a user interface control that is hosted inside a Tool Window. A hosted Tool Control can be displayed inside the browser Tool Window, and can be teared off.
A Tool Control shall not be displayed directly by the client. Tool Controls must inherit ToolControlBase. By registering Tool Controls with the manager they can easily be shown in the approperiate host. It will also be possible to tear off the Tool Control. Initailly a Tool Control is shown as a child to its host and is often associated to some selected object in the Station. For example a Tool Control for setting the position of Targets, is associated with the currently selected Target. If another Target is selected the Tool Control will update itself, and from now on apply changes to the newly selected Target. When the Tool Control is teared off from the host, a new instance will be created, that is still associated with the same Target, but will no longer react on selection changed.
Inheritance Hierarchy
SystemObject
  ABB.Robotics.RobotStudio.Stations.FormsToolControlManager

Namespace:  ABB.Robotics.RobotStudio.Stations.Forms
Assembly:  ABB.Robotics.RobotStudio.Stations.Forms (in ABB.Robotics.RobotStudio.Stations.Forms.dll) Version: 7.0.8747.636
Syntax
C#
public static class ToolControlManager

The ToolControlManager type exposes the following members.

Methods
  NameDescription
Public methodStatic memberCreateToolHost
Creates a host for a Tool Control. Typically Tool Controls are hosted by the browser Tool Windows. The Tool Window does not host the Tool Control directly, but uses another control as a place holder. This place holder is called the Tool Host Control, and is created by this method. When ShowTool(Type, String) is called, the Tool Control will automatically be added to the Tool host Control. Each host has an identity which makes it possible to find it using FindToolHost(String) Add the returned control to the Controls collection of the browser Tool Window.
The Tool Control itself will be added to the Controls collection of the Tool Host Control, by the manager when ShowTool(Type, String) is called.
Public methodStatic memberFindToolHost
Returns the Tool Control host with the specified identifier.
Public methodStatic memberRegisterToolCommand
Registers a Command corresponding to a Tool Control, to make it posible to display it in the specified host. When calling ShowTool(Type, String), only registered hosts will be considered. If the Tool Control should be able to be displayed in several hosts, it has to registered with each host.
Public methodStatic memberShowTool
Creates an instance of the Tool Control specified by its Type and associated with the specified Command Id. If there is a host visible, that has been registered to host the specified Tool Control, the control will be instantiated and shown. The current Tool Control of the host (if any) will be closed.
Top
Remarks
For internal ABB use only.
Version Information

Supported in: 1.0.0.0
See Also