My question is the same as this one:
http://www.devexpress.com/Support/Center/Question/Details/Q278734
We have closed this ticket because another page addresses its subject:
Tab and Page controls - Add the capability to track dragging and dropping a tab and prohibit it from being dropped to a specific positionEvent after tab has been moved (AllowTabDragDrop)
Answers
There is a less elegant but more simple solution which doesn't require modifying the devexpress source code. If each tabsheet is filled by a panel aligned to client then the OnMouseUp and OnMouseDown events of the TcxPageControl will only fire when the mouse is moved up or down in the tab area of the pagecontrol.
Use these PageControl events and the X values to determine if the tabs were moved or not. You can then take action based on the result.
e.g.
on cxPageControl.onmousedown;
BeforeX := x;
on cxPageControl.onmouseup;
if abs(beforex-x) > 5 then
// Tabs probably moved
Hello Erick,
Thank you for your message. I am afraid that this functionality is not supported in the current version of ExpressPageControl. However, you can create an event handler to raise your inherited class of TcxPageControlProperties when the drag-and-drop operation of the tab is over. In this case, it is necessary to override the Init and Drop methods of the TcxTabControlDragAndDropObject. The TcxTabControlDragAndDropObject can provide us with information about the next and previous visible indexes of the dragged tab.
Attached is a simple example that demonstrates this approach in action. I hope this helps you achieve the required functionality
Hello Oleksandr,
We have no immediate plans to implement this functionality. We will probably reconsider our position regarding this feature for future versions of our controls. Please add the Q278734: Event after Tab has been moved (AllowTabDragDrop) thread to Favorites to be notified when we implement the feature.
We would be interested in this feature also. So if you would find the time this would be great !