Manish kumar
Manish kumar

Reputation: 287

How to hide EA properties dialog?

I am using EA Api's "EA_OnPostNewElement" to modify the dropped element from the Toolbox. As soon I drop the element from the toolbox to the diagram, EA properties diaglog is popped up. Even after using

Repository.SuppressEADialogs = true;

How to suppress the EA diaglog if any Element is dropped from the toolbox ?

Upvotes: 5

Views: 181

Answers (1)

Geert Bellekens
Geert Bellekens

Reputation: 13784

The documentation says indeed to use Repository.SuppressEADialogs = true; to disable the standard properties dialog to show up.
If that doesn't work you should probably send in a bug report.

But you can also disable that from the general options by disabling the option Objects | Edit Object on New

Then use the event EA_OnContextItemDoubleClicked to show your own properties dialog and return true to let EA know that you have handled the double-click event so it doesn't show the default properties dialog anyway.

Upvotes: 1

Related Questions