Dragging TreeItem with markup [message #1851629] |
Mon, 11 April 2022 09:19  |
Eclipse User |
|
|
|
In our RAP application, we've got a SWT Tree - without JFace viewer.
The Tree is RWT.MARKUP_ENABLED, each item is filled with a HTML span.
The problem is that we need to enable drag and drop inside the tree, and drag translucent content seems to be based on first column text and image.
HTML markup content appears under cursor while dragging, which is troublesome.

Obviously the issue is resolved without using markup on first column, but we wouldn't want to do that.
I also tried to embed markup inside a Label, and Label inside TreeItem with cell editor, but result is not very satisfying (Label area is not draggable).
Is there a way to adjust a user-friendly content under cursor, or hide the content ?
Is it a known limitation ?
Or should we use Templates instead ?
Regards,
Julien.
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02696 seconds