Objective Chart : PART II Programmer’s Guide : Chapter 17 Axis Scale Components : Customizing Axis Scale Components
Customizing Axis Scale Components
You can modify the default behavior of SRGScaleBar and its derived classes by overriding the virtual functions discussed below.
At the beginning of the drawing process, FindAttachDisplay() is called to find a required display component. The default implementation searches backward toward the head of the component list and attaches the first display encountered.
The virtual function BeforeDraw() is called after the display is attached to do final run-time configuration. The default implementation obtains the scope, text attributes, range, and endpoints from the attached display and call CreateLabels().