Hi Koen,

thank you, with boost::any(WString("...")) it works. I had testet with
boost::any("..."), but then it don't compile, so I thought it must be an
WCssStyleSheet or something.

But witty is great!

Thank you for it!

Greetings
Torsten

Koen Deforche schrieb:
> Hey Torsten,
>
> 2008/12/4 Torsten Schulz <[EMAIL PROTECTED]>:
>   
>> Ok, I think I don't understand which class I must use (WCssStyleSheet or
>> WCssDecorationStyle), and then how to use it. Both don't work.
>>     
>
> Oops. It should be a string or WString. It'a CSS style class.
>
>   
>>  sucheErgebnisse = new WSelectionBox();
>>  sucheErgebnisse->setModel(new WStandardItemModel(0, 1, sucheErgebnisse));
>>  sucheErgebnisse->addItem("test");
>>  sucheErgebnisse->model()->setData(0, 0, boost::any("myclass"), 
>> StyleClassRole);
>>     
>
> and in your inline or external CSS stylesheet you should have a
> declaration like:
>
> option.myclass {
>   color: red;
> };
>
> See WApplication::useStyleSheet() or add a rule to the internal style sheet:
>
> WAppplication::instance()->styleSheet().addRule("option.myclass",
> "color: red;");
>
> Regards,
> koen
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> witty-interest mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/witty-interest
>
>   


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to