Hello Everyone
How to use background image in witty.
i have using that path
WCssDecorationStyle& decoration=root()->decorationStyle();
decoration.setBackgroundImage(WImage("/images/img.jpg"));
it show error.
/home/rupinder/Desktop/website/source/test.h: In member function ‘void
WtApplication::image()’:
/home/rupinder/Desktop/website/source/test.h:106:68: error: no
matching function for call to
‘Wt::WCssDecorationStyle::setBackgroundImage(Wt::WImage)’
/usr/include/Wt/WCssDecorationStyle:115:8: note: candidates are: void
Wt::WCssDecorationStyle::setBackgroundImage(const std::string&,
Wt::WCssDecorationStyle::Repeat, Wt::WFlags<Wt::Side>)
/usr/include/Wt/WCssDecorationStyle:126:8: note: void
Wt::WCssDecorationStyle::setBackgroundImage(Wt::WResource*,
Wt::WCssDecorationStyle::Repeat, Wt::WFlags<Wt::Side>)
background color is working fine but confusion in background image.
witty is also not load the image from CSS.
please help me.
------------------------------------------------------------------------------
Got Input? Slashdot Needs You.
Take our quick survey online. Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest