RectangleTool editable textbox

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
history
Newbie
Newbie
Posts: 29
Joined: Tue May 22, 2007 12:00 am

RectangleTool editable textbox

Post by history » Mon Mar 17, 2008 6:19 pm

if an editable rectangletool is dragged arround the screen with the mouse and a key is pressed the text box that is used for editing the text in the rectangletool is displayed on the screen as a seperate object from the rectangletool.


public void AddAnnotation()

{

Steema.TeeChart.Tools.RectangleTool annotation = new Steema.TeeChart.Tools.RectangleTool();

annotation.KeyDown += new KeyEventHandler(annotation_KeyDown);

annotation.AllowEdit = true;
annotation.Text = "F2 to begin and end edit";
annotation.AutoSize = true;
annotation.AllowResize = true;
annotation.Click += new MouseEventHandler(annotation_Click);

this.uxChart.Tools.Add(annotation);
AdjustRectanglesPosition(uxChart, annotation, false);

}



void annotation_KeyDown(object sender, KeyEventArgs e)

{

//if enter key is pressed then exit annotation editing

if ((e.KeyCode == Keys.Enter || e.KeyCode == Keys.F2) && currentAnnotationTool != null)
currentAnnotationTool.EndEdit();
}



void annotation_Click(object sender, MouseEventArgs e)
{
annotationSelected = true;
currentAnnotationTool = (Steema.TeeChart.Tools.RectangleTool)sender;
}

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

Post by Narcís » Mon Mar 17, 2008 6:44 pm

Hi history,

Thanks for reporting. I've been able to reproduce the problem here and added it (TF02012909) to our defect list to be fixed for future releases.
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

Post Reply