Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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

Creates and initializes a new instance of the TdxNavBarDragObject object.

#Declaration

Delphi
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