Gui Colors

On 03/05/2014 at 19:54, xxxxxxxx wrote:

User Information:
Cinema 4D Version:   R14 
Platform:   Windows  ;   
Language(s) :     C++  ;

---------
Hi folks,
 
I've been around this one before, but am still finding it difficult to locate and obtain certain gui colour values.
 
I'm now needing to get colours such as COLOR_ICONS_BG_ACTIVE_HIGHLIGHT and COLOR_QUICKTAB_TEXT_ACTIVE for some custom tabs I've made, and have tried getting these by using GetViewColor()/GetColorRGB()/GetWorldContainer() but none are returning any colour values. I've read that colours like these can't be obtained before a GeDialog()/GeUserArea()'s InitValues() function is called - but I'm needing to get these before this function.
 
Is there another container (world container/reference perhaps?) that I can get with these values (or referenced values) from to use before InitValues() is called?
 
Cheers,
 
WP.
 
P.s. I think a bit of work could be done in the sdk to show where and how colour values are obtained. I think it might be a good idea also to allow the user to drag the interface colours from the preferences dialog to the console to obtain the colours text id value too.