strach card example
Added by V. Bekir Macit about 11 years ago
Hi,
How can a widget be implemented like example ,which i gave, in Wt
http://wscratchpad.websanova.com/
thank you for any trick :)
Replies (2)
RE: strach card example - Added by Wim Dumon about 11 years ago
You could either do it server-side, like we made this: http://www.webtoolkit.eu/widgets/graphics-charts/paintbrush
But you'll probably prefer to just use the existing link, in which case this should approximately do what you want:
wApp->require("wScratchPad.js");
wApp->useStyleSheet("wScratchPad.css");
// in case Wt's jquery is too old:
wApp->requireJQuery("");
WText *s = new WText(parent); // this becomes a div
s->doJavaScript("$('#" + s->id() + "').wScratchPad({....});");
RE: strach card example - Added by V. Bekir Macit about 11 years ago
hi Wim,
No, I am a c developper and I dont want to involve any code like js css etc.
PaintBrush example seems good but quite slow why? how can it be made more faster like in example?