I'm not sure I understand what you want. Have you already tried with these methods and classes?
method void Wt::WApplication::useStyleSheet (const std::string& uri) method virtual void Wt::WWidget::setStyleClass (const WString& styleClass) class Wt::WCssDecorationStyle class Wt::WCssTemplateRule There are a few more CSS-related methods and classes but if I have understood you correctly, what you want to do can be achieved with those. On Sun, Mar 1, 2009 at 9:51 PM, Martin Dietze <[email protected]> wrote: > Hi, > > I have been using Java-based toolkits for web-based projects so > far. Typical requirements in those projects involve being able > to style the application using CSS classes. To be more precise, > we often need to delegate this work to web designers who do > these things much better than the techies. This usually involves > assigning CSS classes to the markup for components, so that they > can be styled "in general" as well as in the context of a > container with some class. Similarly it is usually good to have > a template which more or less represents a page and which is > close enough to HTML so that a web designer can assign CSS > classes to elements and / or add containers etc. to get the > desired look and feel. > > Now in WT I have not seen this approach yet. In the examples, > CSS seems to get used to to set particular layout properties to > widgets in a rather straightforward way. E.g. I usually want to > leave the attributes of a font to the web designer (who will most > likely edit some CSS classes to accomplish this) rather than set > a properthy "red" or "bold" in the code. > > As I am still in the process of familiarizing myself with WT, I > may have just missed out on something. Does WT supporat the > approach I described above, and if yes, how? Are there any code > examples which could be used as a reference for this to get > started? > > Cheers, > > Martin > > -- > ----------- / http://herbert.the-little-red-haired-girl.org / ------------- > =+= > Arthur: "It's at times like this I wish I'd listened to my mother" > Ford : "Why, what did she say?" > Arthur: "I don't know, I never listened" > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA > -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise > -Strategies to boost innovation and cut costs with open source participation > -Receive a $600 discount off the registration fee with the source code: SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > witty-interest mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/witty-interest > -- Pau Garcia i Quiles http://www.elpauer.org (Due to my workload, I may need 10 days to answer) ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ witty-interest mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/witty-interest
