Hey Joseph,

2009/10/6 Joseph VanAndel <[email protected]>:
> Does Wt support drag and drop of WText Widgets that are laid out
> inside a WVBoxLayout?   If I call
> text->setDraggable(mimeType, NULL, true)
>
> on a WText widget, it isn't displayed.   However, if I call
>
> text->setDraggable(mimeType, NULL, false),
>
> the widget is displayed just as I expect.

I think the drag&drop API is not very clearly documented. I've updated
it to read like this:

"Enable drag&drop for this widget. The mimeType is used to find a
suitable drop target, which must accept dropping of this mimetype.

By default, the entire widget is dragged. One may specify another
widget to be dragged (for example the parent as dragWidget) or a
dragWidget whose function is only to represent the drag visually (when
isDragWidgetOnly = true).

The widget to be identified as source in the dropEvent may be given
explicitly, and will default to this widget otherwise."

Thus, the first call does not make sense since you combine a NULL
dragWidget with dragWidgetOnly = true. I hope this makes more sense
now ?

Regards,
koen

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to