<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to button press and wait until action is finished in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-button-press-and-wait-until-action-is-finished/m-p/237183#M46833</link>
    <description>&lt;P&gt;In one addin, I am calling an .exe to perform an operation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I avoid the user to click several times in this button but not freeze the whole JMP session.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
    <pubDate>Wed, 04 Dec 2019 10:33:59 GMT</pubDate>
    <dc:creator>FN</dc:creator>
    <dc:date>2019-12-04T10:33:59Z</dc:date>
    <item>
      <title>How to button press and wait until action is finished</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-button-press-and-wait-until-action-is-finished/m-p/237183#M46833</link>
      <description>&lt;P&gt;In one addin, I am calling an .exe to perform an operation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I avoid the user to click several times in this button but not freeze the whole JMP session.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2019 10:33:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-button-press-and-wait-until-action-is-finished/m-p/237183#M46833</guid>
      <dc:creator>FN</dc:creator>
      <dc:date>2019-12-04T10:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to button press and wait until action is finished</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-button-press-and-wait-until-action-is-finished/m-p/237217#M46838</link>
      <description>&lt;P&gt;I typically use the Enabled() message to disable the button until JMP detects the task the button has launched is completed.&amp;nbsp; Below is an example that disables the button for 5 seconds and then enables the button again.&amp;nbsp; Your task will be to detect when the executed task is complete.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
nw = New Window( "Example",
	bb = Button Box( "Press Me",
		bb &amp;lt;&amp;lt; enabled( 0 );
		Wait( 5 );
		bb &amp;lt;&amp;lt; enabled( 1 );
	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You can also use the Visibility() message to do the same as above.&amp;nbsp; It does not gray out the button box like enabled() does, rather it makes the button box() invisible to the display until the Visibility() is reset.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2019 11:43:36 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-button-press-and-wait-until-action-is-finished/m-p/237217#M46838</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2019-12-04T11:43:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to button press and wait until action is finished</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-button-press-and-wait-until-action-is-finished/m-p/237220#M46840</link>
      <description>Maybe we also need a try catch in case there is an error?&lt;BR /&gt;</description>
      <pubDate>Wed, 04 Dec 2019 12:14:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-button-press-and-wait-until-action-is-finished/m-p/237220#M46840</guid>
      <dc:creator>FN</dc:creator>
      <dc:date>2019-12-04T12:14:23Z</dc:date>
    </item>
  </channel>
</rss>

