3 #include <Wt/WEnvironment>
5 #include <Wt/WApplication>
30 result->setDraggable(mimeType, dragImage,
true);
38 new WText(
"<p>Help these people with their decision by dragging one of "
39 "the pills.</p>",
this);
41 if (!wApp->environment().javaScript()) {
42 new WText(
"<i>This examples requires that javascript support is "
43 "enabled.</i>",
this);
50 "icons/blue-pill-small.png",
53 "icons/red-pill-small.png",
DragExample(Wt::WContainerWidget *parent)
A Matrix character that takes red and/or blue pills.
WImage * createDragImage(const char *url, const char *smallurl, const char *mimeType, WContainerWidget *p)
Create an image which can be dragged.