## Extended Properties and Methods

Whenever a control supports aggregation, Test Container creates an extended control, which adds additional properties and methods to the control that are specific to Test Container. These additional properties and methods are accessed exactly as if they were implemented by the control itself.

There are five additional properties and methods:

· Name

· Activate

· Deactivate

· UIActivate

· UIDeactivate

#### Name

This property is the user-assigned name of the control and is used by scripts to refer to the control. This name should be unique with respect to any other controls on the form. If a control is created by the TCForm.InsertControl method, the initial value of the Name property is the Name parameter supplied in that method. If the control is inserted manually, it is assigned a default name based on the type of the control.

control.Name = “MyControl”

#### Activate

The Activate method in-place activates the control. This is the same as selecting the control and choosing Activate from the Control menu.

control.Activate

#### Deactivate

The Deactivate method in-place deactivates the control. This is the same as selecting the control and choosing Deactivate from the Control menu.

control.Deactivate

#### UIActivate

The UIActivate method UI activates the control. This is the same as selecting the control and choosing UI Activate from the Control menu.

control.UIActivate

#### UIDeactivate

The UIDeactivate method UI deactivates the control. This is the same as selecting the control and choosing UI Deactivate from the Control menu.

control.UIDeactivate