|
Re: [WD75] Drag & Drop..... Solved. |
Iniciado por kamarad, 30,ago. 2003 23:02 - No hay respuesta |
| |
| | | |
|
| |
Publicado el 30,agosto 2003 - 23:02 |
Hello again, I guess that to vent a little bit must have helped because I was finally able to solve my problem, so you can disregard this message. Thanks anyway: I am sure I would have had some great tips from you all. Christian Hi Christian, For the rest of us lurkers here, how did you solve it? Does the on-line help need clarification? Any quirks that need to be pointed out? Thanks in advance, Art Bonds Hi Art, Well, in the the online help under DndSource Property or DndTarget Property, at the bottom, it says: Limits! The DndDource and DndTarget properties can only be used with: input controls lists TreeView image controls But, if you go under Programmed drag-and-drop, it says: Drag-and-drop source Only the following controls: edit control list TreeView table (listed here) Image Drag-and-drop target All the types of control except: progress bar ActiveX OLE shape I had to try it out to find out that yes, it can be used with tables. In my app, I drag from a table to a treeview, so I put "MySelf..DndSource = dndProgram" in the table's initialization event, and "MySelf..DndTarget = dndProgram" in the treeview's initialization event. Also, in the treeview initialization, I put "DnDEvent("dndTreeViewDrop", MySelf, dndDrop)", where as "dndTreeViewDrop" is the procedure executed when the item is dropped in the treeview. That's it! My only other problem is that it doesn't drop it where I want in the treeview. Again, the help provided with Windev is inexistent, so as above-mentioned, I will solve it on my own. I found a post regarding this in the forum's archive, but it doesn't work for me. Thanks, Christian |
| |
| |
| | | |
|
| | | | |
| | |
|