Results 1 to 5 of 5

Thread: Drag & Drop in modal forms

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 2002
    Posts
    79

    Drag & Drop in modal forms

    I have a form which has a treeview in it.
    The user can copy data from this treeview by using drag & drop. In recent times I called the form not modal (form.show()). Yesterday I opened it modal (form.showdialog()) and now it seems that drag & drop does not work. Is drag & drop not possible in modal forms or may there be anything else wrong?

    Thx.

  2. #2
    Frenzied Member Mike Hildner's Avatar
    Join Date
    Jul 2002
    Location
    Des Moines, NM
    Posts
    1,690
    I just tried what you described, and drag and drop works within the modal form.

    Are you dragging data from your modal form and trying to drop within the same form or outside of it?

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jun 2002
    Posts
    79
    Indeed I want to drop it outside of it.
    But even the cursor (e.g. "no" because dropping isn't allowed within my form) doesn't occur.

  4. #4
    Frenzied Member Mike Hildner's Avatar
    Join Date
    Jul 2002
    Location
    Des Moines, NM
    Posts
    1,690
    I'd have to try it, but it makes sense to me that you should not be able to drop outside of a modal form. After all, it is modal.

    Perhaps there's a different approach to accomplish your desired behaviour. Why would you *need* to drag something out of a modal form?

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Jun 2002
    Posts
    79
    It's a little bit complicated to explain, but I'll try.
    As you perhaps know I am devloping an AddIn for Word. Here everything works fine, therefore I don't say more about it.

    But I have an EXE, too, which starts word and then uses my procedures of that AddIn. And that only works if I open my forms modal. One functionality of the AddIn is that you can copy data of a treeview into the active document by using drag'n'drop.

    That's it....

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width