Shape Series Text Position Problem

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
cbdevelopers
Newbie
Newbie
Posts: 3
Joined: Mon Oct 02, 2006 12:00 am

Shape Series Text Position Problem

Post by cbdevelopers » Mon Oct 30, 2006 3:57 pm

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).

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Tue Oct 31, 2006 12:08 pm

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

cbdevelopers
Newbie
Newbie
Posts: 3
Joined: Mon Oct 02, 2006 12:00 am

Post by cbdevelopers » Tue Oct 31, 2006 12:13 pm

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.

Post Reply