TChart Height problem (VB6 - TeeChart v. 5)
Posted: Thu Oct 27, 2011 12:40 pm
Hi
I have a question regarding the height of the TeeChart control (v. 5).
I have a bug when trying to draw rectangles with texts on the TChart control (my program is written in VB6).
At the initialization, I calculate the needed height of the TChart.
Afterwards I draw the lines using the IAxes functions CalcXPosValue and CalcXPosValue (of the left and Bottom axes).
The problem is that in the initialization, when I calculate the needed height of the TChart for 1000 rectangles, I get the following:
TChart1.Height = [CurrentRowHeight] * (TChart1.Axis.left.Maximum + 1)
CurrentRowHeight is constant - I assign the size of the text to it, so it's value is 300 Twips = 20 Pixels.
TChart1.Axis.left.Maximum - it equals to the rows number (1000).
I have a question regarding the height of the TeeChart control (v. 5).
I have a bug when trying to draw rectangles with texts on the TChart control (my program is written in VB6).
At the initialization, I calculate the needed height of the TChart.
Afterwards I draw the lines using the IAxes functions CalcXPosValue and CalcXPosValue (of the left and Bottom axes).
The problem is that in the initialization, when I calculate the needed height of the TChart for 1000 rectangles, I get the following:
TChart1.Height = [CurrentRowHeight] * (TChart1.Axis.left.Maximum + 1)
CurrentRowHeight is constant - I assign the size of the text to it, so it's value is 300 Twips = 20 Pixels.
TChart1.Axis.left.Maximum - it equals to the rows number (1000).