A While loop is around the event structure with the Stop button wired
to the While loop. During execution, some controlls are hidden
depending on what the program is doing. When the program stops, I
want all controls to be visible again so when back in the LV editor
mode, I can see them and edit them. So the reset to visible
properties are outside the while loop but they do not get reset if the
abort button is pressed to stop the program.
Ultimately, this is compiled to a stand-alone application. If a Stop
button is present, this leaves the application window visible with
some LV menus visible when it is used to stop the app. The toolbar
with Abort button is not shown in the stand-alone app - they just
click the X on the window to stop the app.
On
Fri, 12 Sep 2003 07:47:51 -0500 (CDT), Dennis Knutson
wrote:
>Since you're already using an event structure, the visible properties
>should be placed inside there - no need to place them outside unless
>you're doing some cleanup after the stop button is clicked. I don't
>understand your comment about not wanting a stop button because it
>"would show it leading to display of the LV window when they click
>it". Could you explain what you mean. You really should use a stop
>button and not allow the user to user the abort button. Bad things can
>happen with the abort button. It's a debug tool and not the correct
>way to stop a program. It's easy to disable the thing - VI
>Properties>Window Appearance>Customize and uncheck Show Abort Button.