BCGControlBar Pro for MFC
CBCGPChartTextObject::CBCGPChartTextObject ( CBCGPChartVisualObject pParentChart,
const CString &  strText,
double  dblValX,
double  dblValY,
const CBCGPBrush brTextColor,
const CBCGPBrush brFill,
const CBCGPBrush brOutline,
double  dblDistanceFromPoint = _EmptyCoordinate,
double  dblAngle = _EmptyCoordinate,
BOOL  bDrawConnector = FALSE 
)

Constructs a Chart Text Object.

The constructor always sets CM_CHART_VALUES coordinate mode if dblDistanceFromPoint and dblAngle are not specified; otherwise it sets CM_CHART_VALUE_DIST_ANGLE coordinate mode.

If you wish to use other coordinate mode, set them using CBCGPChartObject::SetCoordinates or CBCGPChartObject::SetCoordinateMode.

Parameters
pParentChartA pointer to a parent chart.
strTextSpecifies the text.
dblValXX value in Chart coordinates.
dblValYY value in chart coordinates.
brTextColorText color.
brFillFill color.
brOutlineOutline color.
dblDistanceFromPointDistance of the center of text box from X,Y (specified by dblValX, dblValY). Can be empty.
dblAngleAngle (in degrees) of the text box relative to Y axis.
bDrawConnectorTRUE - draw connector between text box and the point specified by dblValX, dblValY.