Page 1 of 1

Best way to set up user dialogs for add-in conditional on GUI execution

Posted: Mon Apr 05, 2021 1:51 am
by CrisisStudent
HI all,

I have written an add-in that requires some user inputs. Correspondingly, if the add-in is executed through GUI I need to display user dialogues. However, this should be displayed only if the add-in is executed through GUI, and not if it is displayed through command. I have found a workaround from other user add-ins, but I was wondering if there is preferred way to do this?

Crisis Student

Re: Best way to set up user dialogs for add-in conditional on GUI execution

Posted: Mon Apr 05, 2021 7:34 am
by EViews Gareth
Typical way is to check whether any inputs were given as options or arguments. If none were, then it was executed via menu.

Re: Best way to set up user dialogs for add-in conditional on GUI execution

Posted: Mon Apr 05, 2021 7:54 am
by CrisisStudent
That's exactly what I did, but was not sure if there is a better way. Thanks!