Hello elmec,
elmec wrote:When change the page of TChart, the cursorline disappeared,
the style of which is cssHorizontal...
while the one of cssVertical is OK.
Thanks for the project and the screenshots.
Looking at them, I understand both cssHorizontal and cssVertical work fine.
- When cssHorizontal, the cursor tool is drawn as an horizontal line at the center of the screen. If you don't specify an
YValue for the cursor, TeeChart initializes it with the value in the center of the left axis range.
Then, changing to a bigger page,
the left axis isn't altered and the cursor too is still visible.
- When cssVertical, the cursor tool is drawn as an vertical line at the center of the screen. If you don't specify an
XValue for the cursor, TeeChart initializes it with the value in the center of the bottom axis range.
Then, changing to a bigger page, the
bottom axis is altered but not the XValue of the cursor tool. Then, the cursor isn't drawn because its
XValue is out of the bottom axis range.