Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 ?

like image 443
Manish kumar Avatar asked Nov 07 '22 20:11

Manish kumar


1 Answers

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.

like image 131
Geert Bellekens Avatar answered Nov 24 '22 03:11

Geert Bellekens