Hey Torsten, 2008/12/2 Torsten Schulz <[EMAIL PROTECTED]>: > Hello, > > is there any way to set the Style of the entries in WComboBox? As > example, I'll set the color of the first line in red, the 2nd in blue, > 3nd in green, ... But I'm not able to use setStyleClass with the entries.
I was about to reply: that cannot be done. But googling around shows there is actual good cross-browser support for it! So I think it is a nice feature to add. Similar as for WTreeView, we will implement it so that WComboBox uses the StyleClassRole data of the underlying data model. To set the style class (you can already implement this now, and then benefit from the support in WComboBox later): comboBox->model()->setData(index, 0, boost::any(styleClass), StyleClassRole); 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
