Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
712
Drag and Drop operation on UltraToolbarManager, UltraTabControl, UltraDockManager
posted

Hi,

 

Lets say i've created a nodepad like application using UltraToolbarManager, UltraTabControl and UltraDockManager. When *.txt file is drag over any of those controls,  I wanna do some operation.

How could I acheieve that?

Your help will be highly appreciated.

Parents
No Data
Reply
  • 53790
    posted

    Hello Nyinyithann,

    Maybe one possible approach to achieve the desire behavior could be:
    1. About UltraTabControl
    - Set property  : ultraTabControl1.AllowDrop = true;
    - Handle events:           
    ultraTabControl1.DragEnter+=new DragEventHandler(ultraTabControl1_DragEnter);
    ultraTabControl1.DragDrop += new DragEventHandler(ultraTabControl1_DragDrop);
    Also you could do the same, but on a page level. For example ultraTabPageControl1.AllowDrop = true;
    2. About UltraDockManager – for dock area
    - Set property for the desired area control and set Dock_Area_Left.AllowDrop = true;
    - Handle the following events
    Dock_Area_Left.DragEnter += new DragEventHandler(Dock_Area_Left_DragEnter);
    Dock_Area_Left.DragDrop += new DragEventHandler(Dock_Area_Left_DragDrop);

    Please let me know if you think that I misunderstood your scenario or if you have any questions.
    Regards

Children
No Data