Author Topic: EA_OnPreDropFromTree  (Read 2473 times)

MeryemAdb

  • EA User
  • **
  • Posts: 23
  • Karma: +0/-0
    • View Profile
EA_OnPreDropFromTree
« on: April 16, 2014, 07:05:56 pm »
Hello,

I am using EA_OnPreDropFromTree event to create a new element and I'd like to use its EventProperty to position this element where the user dropped the element from the tree.

However, I have the impression that the PositionY given by the EventProperty is relative to the displayed top-left corner of the diagram. For instance if I scroll down before dropping the element, its position will be off and it will be higher than what I expected.

Is there a way to have an absolute PositionY?
If not, is there a way to know, the absolute position of the displayed top-left corner of the current diagram?
Or is there a way to specify a relative position for a DiagramObject? I tried to specify the location with "l=.;r=.;t=.;b=.;" when creating the object, and I tried to specify its left, right, top and bottom values, but it did not work.

I am developping  an add-in using EA 10.0.1008.

Thanks in advance.
« Last Edit: April 16, 2014, 07:08:51 pm by MeryemAdb »

Aaron B

  • EA Administrator
  • EA User
  • *****
  • Posts: 941
  • Karma: +18/-0
    • View Profile
Re: EA_OnPreDropFromTree
« Reply #1 on: April 17, 2014, 11:41:02 am »
Could be a bug.  Please submit a bug report and we can try to investigate this further.

If you are a registered user, please submit a bug report via the following page:
http://www.sparxsystems.com/registered/forms/reg_bug_report.html
If unregistered:
http://www.sparxsystems.com/support/forms/bug_report.html