DefaultHandlers: Boolean;
The DefaultHandlers property determines whether a default action can be executed with a shape in ETL task.
Available values:
True. The actions will be executed for a shape, which were defined for it in the repository. The corresponding object opens on double-click on the shape, which corresponds to the repository object.
False. Default value. All actions with a shape are handled in component events.
The property is relevant if the ETL task contains shapes that are linked with repository objects.
Executing the example requires a form, a button named the Button1 on the form, the UiEtlObject component named UiEtlObject1 and the EtlBox component named EtlBox1. UiEtlObject1 is selected as a data source for EtlBox1. Any ETL task is connected to UiEtlObject1.
Add a link to the ETL system assembly.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Begin
EtlBox1.PopupMenu := Null;
EtlBox1.DefaultHandlers := True;
EtlBox1.DefaultMenu := True;
End Sub Button1OnClick;
After executing the example, clicking the button opens a system context menu for an ETL task and its shapes. Also, the actions defined for the shapes in the repository are performed for shapes representing repository objects.
See also: