HI!
I want to change the line color of a CWGraph plot line.
I want to show the actual line color in a control. I am trying to use the
Numeric Color control to do it.
I try to get the color, using this code:
long int m_intColor;
CAObjHandle m_objHandle; // Handle for activeX control
GetObjHandleFromActiveXCtrl (m_intPanelID, m_intControlID, &m_objHandle);
CWUIControlsLib_GetCWPlotProperty (m_objHandle, NULL, CWUIControlsLib_CWPlotLineColor, CAVT_ULONG, &m_intColor);
When I set the
Numeric Color control with the value that the
CWUIControlsLib_GetCWPlotProperty returns, it shows me a different color. I set the control using this command:
SetCtrlAttribute (g_intCustomPanel, PANEL_COLORNUM, ATTR_CTRL_VAL, m_intColor);
What is it wrong in my code? What is the command that I have to use to update the color that I choose using the
Numeric Color control?
Thank you in advance!