Contains an extended notebook with support for dragging and dropping tabs on the control.

ExtendedNotebook.pas contains classes and types used to implement an extended notebook control. It provides support for dragging and dropping tabs on the control.

This file is part of the LazControls package,

Specifies an event handler signalled for a drag/drop event on a notebook tab.
Specifies an event handler signalled for a drag event over a notebook tab.
Implements an notebook or page control which supports drag and drop events for its tabs.

TExtendedNotebook is a TPageControl descendant.

Handles mouse down events for the control.
Mouse button for the event.
Shift, Ctrl, or Alt modifier for the mouse button event.
Horizontal coordinate for the mouse pointer.
Vertical coordinate for the mouse pointer.
Handles mouse up events for the control.
Mouse button for the event.
Shift, Ctrl, or Alt modifier for the mouse button event.
Horizontal coordinate for the mouse pointer.
Vertical coordinate for the mouse pointer.
Handles mouse move messages for the control.
Shift, Ctrl, or Alt modifier for the mouse button event.
Horizontal coordinate for the mouse pointer.
Vertical coordinate for the mouse pointer.
Handles control notification messages for the control.
Message examined in the method.
Removes the page at the specified ordinal position.
Ordinal position for the page removed in the method.
Inserts the specified page at the ordinal position in Index.
Page instance inserted in the method.
Ordinal position where the page instance is inserted.
Performs actions when the mouse capture has changed for the control.
Performs actions needed when a drag operation is started for the control.
Object which is dragged in the operation.
Performs actions needed when a drag operation is ended for the control.
Target for the drag operation.
Horizontal coordinate where the drag operation was ended.
Vertical coordinate where the drag operation was ended.
Performs actions needed when a drag operation is over a page or tab on the control.
Performs actions needed to cancel a drag operation for the control.
Paints the window for the control to the specified device context.
Device context where the window is drawn.
Constructor for the class instance.

Create is the overridden constructor for the class instance. It ensures that internal members used in drag and drop operations are initialized for the class instance.

Owner of the class instance.
Performs actions needed when a dragged object is dropped onto the control.

DragDrop is an overridden method in TExtendedNotebook used to perform actions needed when the object in Source is dropped on the control.

If Source is not derived from TExtendedNotebook, or not the tab being dragged in the control, the inherited method is called to signal the OnDragDrop event handler (when assigned). No additional actions are performed in the method when this situation occurs.

The OnTabDragDrop event handler is signalled (when assigned) for the TExtendedNotebook instance in Source. The OnTabDragDropEx event handler is signalled (when assigned) to allow Ctrl + Drag mouse messages to be handled for the control.

If the tab order was changed by the drag operation, the tabs (pages) are re-ordered to reflect the new position.

Object dragged / dropped on to the control.
Horizontal coordinate where the drop occurred.
Vertical coordinate where the drop occurred.
Starts a drag operation for a tab on the control.

Called from the MouseMove method when a mouse down event has occurred on a tab in the control.

Ordinal position for the tab affected in the drag operation.
True if the drag operation starts immediately and the drag threshold is ignored.
Distance that the mouse must move before the drag operation starts, or -1 to use the default value from the drag manager.
Ordinal position for the tab affected by a drag operation.

DraggingTabIndex is a read-only Integer property.

Event handler signalled when the mouse hovers over a tab on the control during a drag operation.
Event handler signalled when the Ctrl key is held while dragging a tab on the control.
Event handler signalled when an object is dropped onto a tab on the control.
Event handler signalled when and object is dropped onto a tab on the control while the Ctrl key is held.
Event handler signalled when a drag operation is ended for the control.
Event handler signalled when a drag operation is started for the control.
Drag mode for a tab on the control.

The default value for the property is dmManual.

Default accept mode for drag operation for a tab.

The default value for the property is dmManual.