Dynamically modifying a shape within a symbol
I have a symbol which contains a rectangle; when I created the rectangle I specified local coordinates within the symbol (i.e. 0,0).
I now need to programmatically move the location of the rectangle within the symbol; but local coordinates no longer seem to be correct (i.e. 10,10 does not move the rectangle to 10,10 within the symbol).
What is going on?
I now need to programmatically move the location of the rectangle within the symbol; but local coordinates no longer seem to be correct (i.e. 10,10 does not move the rectangle to 10,10 within the symbol).
What is going on?
SIGN IN To post a reply.
3 Replies
J.
J.Nagarajan
Syncfusion Team
September 15, 2006 09:59 PM UTC
Hi Mulveyja,
Thank you for your interest in Syncfusion Essential Diagram.
I am afraid, I was not able to reproduce this issue with v4.2.0.37. I have attached my test sample here for your reference. In this sample initially you should select the symbol and you can enter the X and Y coordinates(10,10) in the corresponding textboxes and when you click on the "Ok" button the inner rectangle will move to its corresponding modified location within the symbol.
Please try this and let me know if this helps you.
Thank you for your interest in Syncfusion products.
Regards
Nagarajan
Thank you for your interest in Syncfusion Essential Diagram.
I am afraid, I was not able to reproduce this issue with v4.2.0.37. I have attached my test sample here for your reference. In this sample initially you should select the symbol and you can enter the X and Y coordinates(10,10) in the corresponding textboxes and when you click on the "Ok" button the inner rectangle will move to its corresponding modified location within the symbol.
Please try this and let me know if this helps you.
Thank you for your interest in Syncfusion products.
Regards
Nagarajan
CustomSymbol.zip
AD
Administrator
Syncfusion Team
September 18, 2006 09:00 AM UTC
Your sample seems to demonstrate exactly the issue that I''m seeing.
I''ve just upgraded to SF 4.2.0.37 to be sure.
With your sample try moving MySymbol to the center of the design surface. Then modify the x and y of the innerRect and you should see the issue that I''m having.
Basically after adding MySymbol to the diagram it then morphs into using world rather than MySymbol local coordinates. i.e. setting the innerRect location to 0,0 actually positions the innerRect at the origin of the diagram; not the origin of the containing symbol (which is what one would expect).
Can you confirm that you see this?
Thanks for your prompt response,
James
I''ve just upgraded to SF 4.2.0.37 to be sure.
With your sample try moving MySymbol to the center of the design surface. Then modify the x and y of the innerRect and you should see the issue that I''m having.
Basically after adding MySymbol to the diagram it then morphs into using world rather than MySymbol local coordinates. i.e. setting the innerRect location to 0,0 actually positions the innerRect at the origin of the diagram; not the origin of the containing symbol (which is what one would expect).
Can you confirm that you see this?
Thanks for your prompt response,
James
J.
J.Nagarajan
Syncfusion Team
September 18, 2006 02:46 PM UTC
Hi Mulveyja,
Sorry for the inconvenience caused. I have tested this issue in v.4.2.0.37 and I was able to reproduce this issue. But it has been fixed in v.4.2.0.60 and our later patches.Please create a new Direct-Trac incident (mention the forum link in the subject line) so that we can update with the download link of v.4.2.0.60.
Please check this issue in v.4.2.0.60 and let me know if you have any probelm in this version.
Thanks for using Syncfusion products.
Regards,
Nagaraj
Sorry for the inconvenience caused. I have tested this issue in v.4.2.0.37 and I was able to reproduce this issue. But it has been fixed in v.4.2.0.60 and our later patches.Please create a new Direct-Trac incident (mention the forum link in the subject line) so that we can update with the download link of v.4.2.0.60.
Please check this issue in v.4.2.0.60 and let me know if you have any probelm in this version.
Thanks for using Syncfusion products.
Regards,
Nagaraj
SIGN IN To post a reply.
- 3 Replies
- 2 Participants
-
AD Administrator
- Sep 15, 2006 05:59 PM UTC
- Sep 18, 2006 02:46 PM UTC