![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Tree view - Drag and Drop Topic Summary: How to drag and drop a selected item to a Text field box Created On: 13-Sep-2007 00:08 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
Hi All, After displaying the contents of a module in a tree view, I want to drag and drop (or copy and paste) selected items in a text field box, created along with the tree view. |
|
![]() |
|
![]() |
|
Drag and drop is only possible between treeView and listView DBEs, i.e. not between a treeView and a text box. So you have two ways to achive what you want: Drag and drop in between the one treeView you have and use the drag and drop callback to copy the selected value into the text box. Or use an additional button to copy the selected item from the treeView into the text box. The attached script exemplarily shows both ways.
Regards, Peter |
|
![]() |
|
![]() |
|
Hi Peter,
Thanks a lot for the simple yet effective code for the tree view. I modified the code slightly and am using it. It works great. Is there any possibility to display the tree elements in a multiline mode (word wrap)? If the object text is large, we cannot see the whole text. I checked the DXL manual, but could not find any reference. - Krishna |
|
![]() |
|
![]() |
|
Unfortunately, as far as I know, there is no such thing as multilines in a treeView. The only solution that quickly went to my mind was to add a second "show" button, which just shows the selected element is the existing (or a different, if you prefer) text field.
Regards, Peter |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Tree view - Drag and Drop
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.