Current filter:
          You should refresh the page.
          Not Logged In

          Why does my custom DragObject not function?

          0
            • I would like to use a DragObject of mine. I create it in the TreeList's OnStartDrag event handler and it seems to work fine until I perform a drag-and-drop operation. Since that point onwards, the TreeList does not accept mouse clicks anymore, though I can still use the keyboard arrow buttons to move the focus. What am I missing?

          You must  log in  or  register  to leave comments

          1 Answer

          0

          Applies to:
          ExpressQuantumGrid 3, ExpressQuantumTreeList 3, ExpressInspector, stand-alone editors (ExpressEditors Library 3)
          ExpressQuantumGrid 4 and 5, ExpressQuantumTreeList 4, ExpressVerticalGrid, stand-alone editors (ExpressEditors Library 4 and 5)

          By design, our controls require the TDragControlObject component to be used. So, you should derive your custom DragObject from this class.

          NOTE: When using CX controls (ExpressQuantumGrid 4 and 5, ExpressQuantumTreeList 4, ExpressVerticalGrid, stand-alone editors (ExpressEditors Library 4 and 5)) it is best to derive your DragObject from the TcxDragControlObject (cxControls.pas) that is itself inherited from the TDragControlObject.

          Please refer to the "How to drag a cell's value to an external editor" article for a sample of a custom DragObject for the ExpressQuantumGrid 4.

          See also:
          How to implement drag-and-drop using ExpressQuantumGrid 4
          How to implement drag-and-drop inside a Grid
          How to obtain the Grid row at a given location on the screen
          How to allow an end-user to perform a drag and drop operation with a specific criteria

          You must  log in  or  register  to leave comments