Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic DOORS (steve huntington)
Decrease font size
Increase font size
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
Search Topic Search Topic
Topic Tools Topic Tools
Quick Reply Quick Reply
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 13-Sep-2007 00:08
User is offline View Users Profile Print this message


Krishna Kandala

Posts: 170
Joined: 8-Jul-2006

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.
When I look at the DXL manual, a callback function of the Drop Event is mentioned. I cannot make out how to do it.
Will someone explain to me how to go about it?
Thanks in advance

Report this to a Moderator Report this to a Moderator
 13-Sep-2007 10:19
User is offline View Users Profile Print this message


Peter Albert

Posts: 232
Joined: 30-Dec-2005

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
Report this to a Moderator Report this to a Moderator
 13-Sep-2007 18:28
User is offline View Users Profile Print this message


Krishna Kandala

Posts: 170
Joined: 8-Jul-2006

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
Report this to a Moderator Report this to a Moderator
 14-Sep-2007 07:31
User is offline View Users Profile Print this message


Peter Albert

Posts: 232
Joined: 30-Dec-2005

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
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 2 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 16:36.
There are currently 0 guests browsing this forum, which makes a total of 2 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.