<?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 Custom Busy Light( )? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Custom-Busy-Light/m-p/713104#M89652</link>
    <description>&lt;P&gt;Hello jmp community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First of all, let me wish you a great new year!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am currently working on a project and want to use something similar to&amp;nbsp;&lt;CODE class=" language-jsl"&gt;busy light()&lt;/CODE&gt;&amp;nbsp;function but with a custom animated gif.&lt;/P&gt;&lt;P&gt;The only way I find to animated a gif in a &lt;CODE class=" language-jsl"&gt;New Window()&lt;/CODE&gt; is to use this block of jsl&amp;nbsp; by incrementing the gif frame by frame.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;spinner = New Image( gifpath || "\spinner.gif" );&lt;BR /&gt;nbFrame = spinner &amp;lt;&amp;lt; Get N Frames();&lt;BR /&gt;&lt;BR /&gt;[...]&lt;BR /&gt;&lt;BR /&gt;For( i = 0, i &amp;lt; nbFrame, i++,
  spinner &amp;lt;&amp;lt; Set Current Frame( i );
  nwStatus &amp;lt;&amp;lt; reshow();
  wait(3/100);
  if(i == nbFrame, i = 0;);
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Is there another way to do it?&amp;nbsp;Because this does not work independently of the main calculation script.&lt;/P&gt;&lt;P&gt;Is there a way to custom the&amp;nbsp;&lt;CODE class=" language-jsl"&gt;busy light()&lt;/CODE&gt;?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Guillaume&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 02 Jan 2024 09:01:32 GMT</pubDate>
    <dc:creator>guillaumebugnon</dc:creator>
    <dc:date>2024-01-02T09:01:32Z</dc:date>
    <item>
      <title>Custom Busy Light( )?</title>
      <link>https://community.jmp.com/t5/Discussions/Custom-Busy-Light/m-p/713104#M89652</link>
      <description>&lt;P&gt;Hello jmp community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First of all, let me wish you a great new year!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am currently working on a project and want to use something similar to&amp;nbsp;&lt;CODE class=" language-jsl"&gt;busy light()&lt;/CODE&gt;&amp;nbsp;function but with a custom animated gif.&lt;/P&gt;&lt;P&gt;The only way I find to animated a gif in a &lt;CODE class=" language-jsl"&gt;New Window()&lt;/CODE&gt; is to use this block of jsl&amp;nbsp; by incrementing the gif frame by frame.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;spinner = New Image( gifpath || "\spinner.gif" );&lt;BR /&gt;nbFrame = spinner &amp;lt;&amp;lt; Get N Frames();&lt;BR /&gt;&lt;BR /&gt;[...]&lt;BR /&gt;&lt;BR /&gt;For( i = 0, i &amp;lt; nbFrame, i++,
  spinner &amp;lt;&amp;lt; Set Current Frame( i );
  nwStatus &amp;lt;&amp;lt; reshow();
  wait(3/100);
  if(i == nbFrame, i = 0;);
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Is there another way to do it?&amp;nbsp;Because this does not work independently of the main calculation script.&lt;/P&gt;&lt;P&gt;Is there a way to custom the&amp;nbsp;&lt;CODE class=" language-jsl"&gt;busy light()&lt;/CODE&gt;?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Guillaume&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2024 09:01:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Custom-Busy-Light/m-p/713104#M89652</guid>
      <dc:creator>guillaumebugnon</dc:creator>
      <dc:date>2024-01-02T09:01:32Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Busy Light( )?</title>
      <link>https://community.jmp.com/t5/Discussions/Custom-Busy-Light/m-p/713678#M89713</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/994"&gt;@guillaumebugnon&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I think another possible way to show an animated gif in a new window, you can use Web Browser Box() function.&lt;BR /&gt;Here is a sample script to do this. In this script, you need to create html file, which is embedded gif animation.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;nw = New Window( "Example",
	&amp;lt;&amp;lt;Show Menu( 0 ),
	&amp;lt;&amp;lt;show toolbars( 0 ),
	V List Box( Text Box( "Please Wait!" ), Spacer Box( size( 20, 20 ) ), wb = Web Browser Box() )
);
wb &amp;lt;&amp;lt; Navigate( "file:///C:/xxxx/xxxx/test.html" );
nw &amp;lt;&amp;lt; Set Window Size( 200, 200 );

//test
Wait( 5 );
nw &amp;lt;&amp;lt; close window();&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Here is an example of an html file.&lt;/P&gt;
&lt;PRE&gt;&amp;lt;!doctype html&amp;gt;
&amp;lt;html&amp;gt;
  &amp;lt;body&amp;gt;
    &amp;lt;div style="text-align: center"&amp;gt;
      &amp;lt;img src="./spinner.gif"  width="50" /&amp;gt;
    &amp;lt;/div&amp;gt;
  &amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 05 Jan 2024 04:34:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Custom-Busy-Light/m-p/713678#M89713</guid>
      <dc:creator>yuichi_katsumur</dc:creator>
      <dc:date>2024-01-05T04:34:52Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Busy Light( )?</title>
      <link>https://community.jmp.com/t5/Discussions/Custom-Busy-Light/m-p/713698#M89717</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/1654"&gt;@yuichi_katsumur&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;That's a very good idea.&amp;nbsp;I'll try that, it should work.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2024 07:46:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Custom-Busy-Light/m-p/713698#M89717</guid>
      <dc:creator>guillaumebugnon</dc:creator>
      <dc:date>2024-01-05T07:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Busy Light( )?</title>
      <link>https://community.jmp.com/t5/Discussions/Custom-Busy-Light/m-p/713750#M89722</link>
      <description>&lt;P&gt;It works !!&lt;/P&gt;&lt;P&gt;Thanks a lot&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/1654"&gt;@yuichi_katsumur&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Animation.gif" style="width: 478px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/60183iEFC1BED5238757B6/image-size/large?v=v2&amp;amp;px=999" role="button" title="Animation.gif" alt="Animation.gif" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2024 12:48:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Custom-Busy-Light/m-p/713750#M89722</guid>
      <dc:creator>guillaumebugnon</dc:creator>
      <dc:date>2024-01-05T12:48:56Z</dc:date>
    </item>
  </channel>
</rss>

