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

For tips, questions and general information about writing Add-ins, how to package them, and how to submit them to EViews for publication.

Moderators: EViews Gareth, EViews Moderator

CrisisStudent
Posts: 48
Joined: Mon Nov 16, 2020 10:52 am

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

Postby CrisisStudent » Mon Apr 05, 2021 1:51 am

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

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13306
Joined: Tue Sep 16, 2008 5:38 pm

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

Postby EViews Gareth » Mon Apr 05, 2021 7:34 am

Typical way is to check whether any inputs were given as options or arguments. If none were, then it was executed via menu.
Follow us on Twitter @IHSEViews

CrisisStudent
Posts: 48
Joined: Mon Nov 16, 2020 10:52 am

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

Postby CrisisStudent » Mon Apr 05, 2021 7:54 am

That's exactly what I did, but was not sure if there is a better way. Thanks!


Return to “Add-in Writing area”

Who is online

Users browsing this forum: No registered users and 9 guests