interface background color
-
On 16/05/2014 at 04:44, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 15
Platform: Windows ; Mac OSX ;
Language(s) : C++ ;---------
Hi,I am trying to get the interface background color that is defined in interface color preferences. I found this post https://developers.maxon.net/forum/topic/7856/10182_gui-colors&KW=color&PID=39408#39408 but there was no answer.
How would I get access to this color value? Is it stored somewhere in world preferences?
Ama
-
On 18/05/2014 at 20:47, xxxxxxxx wrote:
Hi Ama,
if you're looking for the colours to use inside a GeUserArea()'s DrawMsg() function, then you can use the following:this->DrawSetPen(COLOR_BG); // And here's a few others that might be useful: this->DrawSetPen(COLOR_EDGELT); this->DrawSetPen(COLOR_EDGEDK); this->DrawSetPen(COLOR_BG_HIGHLIGHT);
If you're trying to set colour values outside of DrawMsg(), you may not get the returned values until after the InitValues() is called. I'm not entirely sure which colours are affected by this, the docs don't really tell you much on gui colours at all. But anyway, hope that's of some help.
WP. -
On 21/05/2014 at 05:41, xxxxxxxx wrote:
worked perfectly.
thank you,
Ama