Page 1 of 1

Adding user text boxes on a chart

Posted: Thu Oct 13, 2005 8:40 pm
by 9083183
Is there a way to add text boxes to a chart and let the user type info, scale them, edit them, and move them around? I may want them to be able to add several on the same chart. I want them to be printed when the chart gets printed so I'm hoping it will be a part of theTchart control.

I see where I can programmatically use the annotation tool and I suppose I could ask for the text in a seperate process then display it with the annotation tool. I'm not sure how to resize and position it once its on the chart. I'd like the user to be able to drag the text around and delete it with the mouse.

Maybe there is something in the documentation that I missed. If anyone has a sample in VB or some other ideas which might help, I'd appreciate it.
David

VB6, Tchart 6

Posted: Mon Oct 17, 2005 8:46 am
by narcis
Hi dcurrier,

This can be done as in the example I've posted at [url]news://www.steema.net/steema.public.attachments[/url] newsgroup. The text can be edited using a MessageBox. To remove the annotation tool you can use the same approach as for dragging it.