Drag Drop |
Post Reply |
Author | |
Brian42
Newbie Joined: 03 December 2008 Location: United States Status: Offline Points: 5 |
Post Options
Thanks(0)
Posted: 03 December 2008 at 5:41pm |
I'm using the taskpanel for a toolbox for a designer. Which works group dropping the selected Item on the Designer. However, I'm trying to figure out how to implement the drag/drop within the control to allow rearranging of the toolbox items. I am trying to get the data out of OLEDragDrop function; however I can't figure out how to get the data properly.
Any help would be great.
Thanks in advance
Brian
private void wndTaskPanel_BeginDrag(object sender, AxXtremeTaskPanel._DTaskPanelEvents_BeginDragEvent e) { SelfHostToolboxItem selectedItem = (SelfHostToolboxItem)e.item.Tag; if (selectedItem == null || selectedItem.ComponentClass == null) return; ToolboxItem toolboxItem = ToolboxPane.GetToolboxItem(selectedItem.ComponentClass); IDataObject dataObject = this.SerializeToolboxItem(toolboxItem) as IDataObject; DragDropEffects effects = DoDragDrop(dataObject, DragDropEffects.Copy | DragDropEffects.Move | DragDropEffects.None); } |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |