I would like to create a rectangle tool with several annotations tools into it, but with the selector tool when I move the rectangle the annotations don't move.
Is it posible to create an rectangle or something with anotations and drag all of them at the same time?
Thanks
Alain
Move rectangle with annotations into it
Re: Move rectangle with annotations into it
Hi Alain,
I'm afraid it won't be possible with the actual TeeChart tool set. But you should be able to achieve it with OnMouseDown, OnMouseMove and OnMouseUp events.
If you find troubles with it, don't hesitate to let us know.
I'm afraid it won't be possible with the actual TeeChart tool set. But you should be able to achieve it with OnMouseDown, OnMouseMove and OnMouseUp events.
If you find troubles with it, don't hesitate to let us know.
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: Move rectangle with annotations into it
I'm trying it, and I can move annotations automatically when I move a rectangle, but I have a strange behaviour, when I add the rectangle and annotation dinamically.
In the Dragging event I always set de annotation 10 pixels more in left and top properties than the rectangle, but I can't do it when I add the rectangle and annotation with the add button.
How can I do it?
I attach an example.
Thanks
In the Dragging event I always set de annotation 10 pixels more in left and top properties than the rectangle, but I can't do it when I add the rectangle and annotation with the add button.
How can I do it?
I attach an example.
Thanks
- Attachments
-
- TestTeeChart2010.zip
- (28.37 KiB) Downloaded 438 times
Re: Move rectangle with annotations into it
Hi wakeup,
Try calling tChart1.Refresh(); before initializing the annotation position (Left and Top properties).
Try calling tChart1.Refresh(); before initializing the annotation position (Left and Top properties).
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: Move rectangle with annotations into it
Hi Yeray,
As you can see in the example I uploaded I have the refresh and it seems not solve anything...
Thanks
As you can see in the example I uploaded I have the refresh and it seems not solve anything...
Thanks
Re: Move rectangle with annotations into it
Hi wakeup,
I moved the Refresh call to be before the set of the properties and it works for me here:
I moved the Refresh call to be before the set of the properties and it works for me here:
Code: Select all
tChart1.Refresh();
anotacion.Left = rectangulo.Left + 10;
anotacion.Top = rectangulo.Top + 10;
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: Move rectangle with annotations into it
Ah! Thanks!
I put the refresh before the asings and now it runs too.
Thanks you
I put the refresh before the asings and now it runs too.
Thanks you
Re: Move rectangle with annotations into it
Hi wakeup,
You're welcome!
You're welcome!
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |