SRGDisplayBase::SetDisplayRect

voidSRGDisplayBase::SetDisplayRect(CRectr, BOOLlock)

Initializes the m_DisplayRect member and optionally locks the display

Defined in: SRGDisplayBase.cpp

Parameters

r

Desired display rectangle

lock

If TRUE then the display is locked

Remarks

Under normal operating conditions, the SRGraphDisplay system will automatically resize the display area to accommodate changes in the font sizes, string lengths, and number of labels in the chart. It is however possible to set and lock a display rectangle so that the data display area does not change size automatically. This feature is particularly useful when making multi-axis charts. It allows you to select the size and position of all data displays without them becoming misaligned due to the automatic adjustment process.