Hey Frans, 2012/2/1 Frans Meulenbroeks <fransmeulenbro...@gmail.com>: >> As part of learning Wt I've been playing with the treeview example. >> One of the buttons is Toggle Stripes. This one does toggle >> alternatingRowColors. >> According to the doc this gives the alternate color in the css. >> However the example has no .css file; and loading the stylesheet is >> commented out: >> TreeViewApplication.C: //app->useStyleSheet("treeview.css");
The toggling stripes is implemented in the theme-based stylesheets. The stripes are implemented using images (because there is not really any other option in IE6) that are statically generated. There are scripts in "resources/themes/default/stripes" and "resources/themes/polished/stripes" that generate these and that can be used modified to create images with alternate colors. You then can either fork the entire theme, or override the CSS selectors for the WTreeView only. It's a bit clumsy (admitted) but there is nothing else that can be done without requiring a dependency like graphicsmagick/imagemagick in Wt which is currently optional. We might revise it in the future to switch to something pure client-side (CSS + canvas) or using dynamically generated images. Regards, koen ------------------------------------------------------------------------------ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 _______________________________________________ witty-interest mailing list witty-interest@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/witty-interest