Skip to main content

Create(TdxCustomNavBar,TDragObject,TdxNavBarGroup,TdxNavBarItemLink,TdxNavBarItem) Constructor

Creates and initializes a new instance of the TdxNavBarDragObject object.

Declaration

constructor Create(ANavBar: TdxCustomNavBar; var DragObject: TDragObject; ASourceGroup: TdxNavBarGroup; ASourceLink: TdxNavBarItemLink; ASourceItem: TdxNavBarItem); virtual;

Parameters

Name Type
ANavBar TdxCustomNavBar
DragObject TDragObject
ASourceGroup TdxNavBarGroup
ASourceLink TdxNavBarItemLink
ASourceItem TdxNavBarItem

Remarks

The Create method is used to create a new instance of the TdxNavBarDragObject object and initialize its properties to specific values.

If drag & drop operations will be performed within the same NavBar control (internal drag & drop operations), you do not need to use this constructor directly. In such cases, an instance of the TdxNavBarDragObject object is created automatically.

If you plan on allowing users to perform external drag & drop operations, you should create a new instance of the TdxNavBarDragObject object manually to support dragging items from another control and dropping them onto the NavBar control. For this purpose, you should provide a handler for the OnStartDrag event generated by the source control.

See Also