Book a Demo

Author Topic: ActiveX diagram 'modified'  (Read 8994 times)

Adam@Schneider

  • EA User
  • **
  • Posts: 32
  • Karma: +0/-0
    • View Profile
ActiveX diagram 'modified'
« on: November 11, 2014, 05:43:52 pm »
I have a custom .NET ActiveX control within my addin, it is loaded into EA as a diagram page from a context menu using the repository.AddTab method.

The custom control contains a DataGridView that is populated from some items loaded within EA, when I create a new entry in the view, I create a new element in EA (and based on contents of the combo box cells I also create some connectors).

The thing is, every time I create a new row in the control I suspect some message is escaping the control and being caught by EA, marking the diagram as modified with a leading '*', depending on how long I am editing for I end up with a whole stack of '*'. This is very annoying, when I programmatically go to activate the tab, it has a different name to what I expect, also when I close the tab, even though all my changes are committed on an ongoing basis it prompts me to 'save' my diagram.

My question is, what is EA catching to trigger the '*'? If I know what message it is maybe I can prevent it leaking.
Is it something I am doing via the object model?
Otherwise, is there any way to say hey, EA, this diagram has been saved now so you don't need to sweat it with the starts and the prompts?

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: ActiveX diagram 'modified'
« Reply #1 on: November 12, 2014, 09:08:08 am »
There was an issue apparently fixed in version 10 where ctrl+mouse wheel caused that to happen.

I don't have an add-in view on hand to test if it actually was fixed and it's a new scenario we haven't seen.

Adam@Schneider

  • EA User
  • **
  • Posts: 32
  • Karma: +0/-0
    • View Profile
Re: ActiveX diagram 'modified'
« Reply #2 on: November 13, 2014, 07:58:18 pm »
Using Spy++ I cant see anything that might cause this to happen, there is nothing out of the ordinary being emitted from the window as far as I can see. Can the developers have a look to see what triggers the '*' being added to the window? At least then I know whether to look via at window messages or the object model code.

If not I can submit a bug but would have to take some time to write a small standalone addin to reproduce the problem.