Page 1 of 1

Shape Series Text Position Problem

Posted: Mon Oct 30, 2006 3:57 pm
by 9642631
Using the shape series the text array draws the text in the wrong position.

Dim RollShape As New Steema.TeeChart.Styles.Shape(DefectsTChart.Chart)
RollShape.Color = Color.Aqua
RollShape.Font.Color = Color.Blue
RollShape.Font.Bold = True
RollShape.Font.Name = "Tahoma"
RollShape.Pen.Width = 2
RollShape.Transparent = True
RollShape.ShowInLegend = False
RollShape.Style = Steema.TeeChart.Styles.ShapeStyles.Rectangle
RollShape.X0 = prevWidth - rollBtn.RollWidth
RollShape.X0 = prevWidth
RollShape.Y1 = prevLength
RollShape.Y0 = prevLength + rollBtn.RollLength
Dim strArray(1) As String
strArray(0) = rollBtn.Text
strArray(1) = rollBtn.CullCode + " " + rollBtn.Destination
RollShape.Text = strArray

The rectangles draw correctly, but the text x position is wrong (the y is correct).

Posted: Tue Oct 31, 2006 12:08 pm
by narcis
Hi dbdevelopers,

Could you please send us an example we can run "as-is" to reproduce the problem here? You can post your files at news://www.steema.net/steema.public.attachments newsgroup.

Thanks in advance.

Posted: Tue Oct 31, 2006 12:13 pm
by 9642631
Just found the problem as you were posting - I had a typo by repeating the X0 twice. The shape still drew being a rectangle and having 3 points defined, but the text was off.

Thanks for your reply.