moglee
moglee

Reputation: 11

CTabFolderRenderer

I need to customize my swt tabfolder. The problem specifically is :

if( a condition met in the content of a tab item )

{

    color the upper tab area of that tab item

}

if( tabfolder to be reset )

{

    reset the tabfolder back to its original view

}

I think a CTabFolderRenderer can do it? Any ideas/suggestions are highly appreciated.

Thanks

Upvotes: 1

Views: 312

Answers (1)

Korhan Ozturk
Korhan Ozturk

Reputation: 11320

Yes, writing your own CTabFolderRenderer and setting it to your CTabFolder instance is an option.

Yet, CTabFolder's setBackground(Color color) and setSelectionBackground(Color color) methods would work for you if your aim is just to color the tab item.

Upvotes: 1

Related Questions