Hey Joseph,

2010/3/26 Joseph VanAndel <[email protected]>:
> I am writing a user interface where I want allow a user to select a single 
> item from one of three lists, and add it to another list.  If I apply
>
> selectionBox->setDraggable(mimeType, NULL, false) to a WSelectionBox, I can 
> drag the entire widget, which then vanishes, and the widget can't be dragged 
> again.
>
> If I created a WText widget as the dragWidget, add it to my WGridLayout, and 
> call
>
> selectionBox->setDraggable(mimeType, &dragme_, true);
>
> I can't drag anything.
>
> If there's another way of providing the same functionality, please let me 
> know.

WSelectionBox uses the built-in list control of HTML, and this list
does not support drag and drop functionality.

To have drag and drop of single items, you can use a WTreeView instead
(which can be rendered as a list using setRootIsDecorated(false).

Regards,
koen

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to