closing a Dialog Box

2 posts / 0 new
Last post
Torsten Reifegerste
Offline
Joined: 08/06/2021 - 14:18
closing a Dialog Box

Hello,
 
thanks to the youtube tutorial i managed to create my first dialog box.
 
Depending on the selection, a script is started through the dialog box.
The selected script itself takes about 5 minutes to complete. It is possible to close the dialog menu before completing the selcted script and not afterwards?
Or maybe lower the showing level, it is allways the front window when i use other programs / windows.
 
 
 
thx for helping me
Torsten

Files: 
Brian Element's picture
Brian Element
Offline
Joined: 07/11/2012 - 19:57

Hello Torsten,

Your problem is because you are running your analysis while before closing the dialog box.  The lines to call your analysis should be after you close the dialog, namely from the Sub Main after the line "If not bExitScript then" as this is generally where the code would go.  The menu would open up the dialog, you then place the items from the dialog in global variables, you close the dialog and then run the different analysis based on the global variables from the dialog.

Hopefully that makes sense.

Brian