03-05-2007 09:34 AM
03-05-2007 01:15 PM
Hi
schoolworkwork,
To change an Axis name programmatically, you need to call the SetCtrlAttribute function and set the ATTR_XNAME or ATTR_YNAME
attribute to whatever
you like. For example, suppose I wanted to change the top X-Axis name of
a graph. I would say
SetCtrlAttribute (panel, PANEL_GRAPH, ATTR_ACTIVE_XAXIS,
VAL_TOP_XAXIS); // Make the top or bottom x-axis the active one
SetCtrlAttribute (panel, PANEL_GRAPH, ATTR_XNAME, "Hello
there"); // Set the name
Hope this helps!
Best Regards,