Hello All,
Just another newbie question....
I'm trying to create a menubar of itemgroups.  I would like the itemgroups and 
child items to have a separate color from the other itemgroups in the menubar.  
This would allow different colored itemgroups in the menubar to be 'color 
coded' acording to the subject type. I've subclassed ItemGroup and Item, but 
can't seem to integrate the Style stuff into the classes.

I've tried using Styles, according to the source code.  I've tried using Styles 
according to the previous posts on this list.  I've tried copying 'draw' code 
from the source files. Nothing seems to work.  I can compile without errors, 
but the desired colors don't appear in the subclassed itemgroup or item.

Can someone give me an esample of how to incorporate styles into a subclass?

NamedStyle( ItemGroup::default_style);
seems like it's supposed to create a new style, as a copy from an existing 
style. But how do I make the desired changes and incorporate it into my CIGroup 
subclass of ItemGroup?

Revert( Style *s);
appears to be the function for making changes to the new style.  Do I create a 
class function
CIGroup::revert() in my class?

I've read the documentation, but am getting more confused as I go on.

Please point me in the right direction.

Thanks,
Marty


_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to