SRGraphComponent::DrawPointObject

voidSRGraphComponent::DrawPointObject(CPointfirstpoint, CPointlastpoint, SRGraphStyle *ptrStyle, intnObjectMode, SRGraphData *pData)

Draws a point or point-line combination

Defined in: SRGComp.cpp

Parameters

firstpoint

Position of the start point

lastpoint

Position of the end point

ptrStyle

Pointer to an SRGraphStyle object

nObjectMode

Wiget drawing mode parameter

pData

A pointer to the data object. NULL by default. May be used in the labelling process.

Remarks

Two points on a graph may be connected by a line and/or covered by wigets. Normally the style is dictated by the object style, but if the style is CX_OBJECT_AUTOMATIC or CX_OBJECT_EXPOINT you can choose to place a wiget at either the first, last, or both points. The wiget drawing mode parameter determines where wigets are drawn...
0=Wiget at first point
1=Wiget at last point
2=Wiget at both points

If you need a line without wigets, set your object style to CX_OBJECT_LINE.
If you need one wiget only then set the object style to CX_OBJECT_POINT. The wiget will be displayed over the first point.