<?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 Change textbox size within macro condition in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Change-textbox-size-within-macro-condition/m-p/229113#M81070</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everybody!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am researching a possibility to create a progess bar in QlikView. The basic idea is to change a textbox width depending on how far my macro has worked.&lt;/P&gt;&lt;P&gt;When you place the code for resizing in a condition, the changes in the interface occures after the macro has completely run.&lt;/P&gt;&lt;P&gt;How can I change something in the interface sumultaneously during the macro is running?&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;sub testProgressBar&lt;BR /&gt;&lt;BR /&gt; set textBox = ActiveDocument.GetSheetObject("TX01")&lt;BR /&gt; set frame = textBox.GetFrameDef&lt;BR /&gt; pos = frame.Rect&lt;BR /&gt;&lt;BR /&gt; strIterable = ""&lt;BR /&gt;&lt;BR /&gt; for i = 0 to 10000&lt;BR /&gt; strIterable = strIterable &amp;amp; " " &amp;amp; i&lt;BR /&gt;&lt;BR /&gt; if i = 3000 then&lt;BR /&gt; pos.Width = 350&lt;BR /&gt; textBox.SetFrameDef frame&lt;BR /&gt; end if&lt;BR /&gt; next&lt;BR /&gt;&lt;BR /&gt;end sub&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your suggestions&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Dec 2010 11:07:13 GMT</pubDate>
    <dc:creator>Hatus</dc:creator>
    <dc:date>2010-12-21T11:07:13Z</dc:date>
    <item>
      <title>Change textbox size within macro condition</title>
      <link>https://community.qlik.com/t5/QlikView/Change-textbox-size-within-macro-condition/m-p/229113#M81070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everybody!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am researching a possibility to create a progess bar in QlikView. The basic idea is to change a textbox width depending on how far my macro has worked.&lt;/P&gt;&lt;P&gt;When you place the code for resizing in a condition, the changes in the interface occures after the macro has completely run.&lt;/P&gt;&lt;P&gt;How can I change something in the interface sumultaneously during the macro is running?&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;sub testProgressBar&lt;BR /&gt;&lt;BR /&gt; set textBox = ActiveDocument.GetSheetObject("TX01")&lt;BR /&gt; set frame = textBox.GetFrameDef&lt;BR /&gt; pos = frame.Rect&lt;BR /&gt;&lt;BR /&gt; strIterable = ""&lt;BR /&gt;&lt;BR /&gt; for i = 0 to 10000&lt;BR /&gt; strIterable = strIterable &amp;amp; " " &amp;amp; i&lt;BR /&gt;&lt;BR /&gt; if i = 3000 then&lt;BR /&gt; pos.Width = 350&lt;BR /&gt; textBox.SetFrameDef frame&lt;BR /&gt; end if&lt;BR /&gt; next&lt;BR /&gt;&lt;BR /&gt;end sub&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your suggestions&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Dec 2010 11:07:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-textbox-size-within-macro-condition/m-p/229113#M81070</guid>
      <dc:creator>Hatus</dc:creator>
      <dc:date>2010-12-21T11:07:13Z</dc:date>
    </item>
    <item>
      <title>AW:Change textbox size within macro condition</title>
      <link>https://community.qlik.com/t5/QlikView/Change-textbox-size-within-macro-condition/m-p/229114#M81071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have solved the problem:&lt;/P&gt;&lt;P&gt;In VBScript exists a function which pauses the code flow until the actualizations have been done. I.e. &lt;B&gt;ActiveDocument.GetApplication.WaitForIdle&lt;/B&gt; must be placed after a "refresh" in the interface.&lt;/P&gt;&lt;PRE style="margin:0px;"&gt;for i = 0 to 10000&lt;BR /&gt; strIterable = strIterable &amp;amp; " " &amp;amp; i&lt;BR /&gt;&lt;BR /&gt; if i = 3000 then&lt;BR /&gt; pos.Width = 350&lt;BR /&gt; textBox.SetFrameDef frame&lt;BR /&gt; ActiveDocument.GetApplication.WaitForIdle&lt;BR /&gt;&lt;BR /&gt; end if&lt;BR /&gt; next&lt;BR /&gt;&lt;BR /&gt;Aquele abraço&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jan 2011 13:46:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-textbox-size-within-macro-condition/m-p/229114#M81071</guid>
      <dc:creator>Hatus</dc:creator>
      <dc:date>2011-01-05T13:46:44Z</dc:date>
    </item>
    <item>
      <title>AW:Change textbox size within macro condition</title>
      <link>https://community.qlik.com/t5/QlikView/Change-textbox-size-within-macro-condition/m-p/229115#M81072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I have solved the problem:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In VBScript exists the function ActiveDocument.GetApplication.WaitForIdle , it must be placed after a change in the interface. Doing it he code flow is paused and the refresh is done &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;Hatus wrote:for i = 0 to 10000&lt;BR /&gt; strIterable = strIterable &amp;amp; " " &amp;amp; i&lt;BR /&gt;&lt;BR /&gt; if i = 3000 then&lt;BR /&gt; pos.Width = 350&lt;BR /&gt; textBox.SetFrameDef frame&lt;BR /&gt; ActiveDocument.GetApplication.WaitForIdle&lt;BR /&gt; end if&lt;BR /&gt; next&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;Aquele abraço&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jan 2011 13:50:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-textbox-size-within-macro-condition/m-p/229115#M81072</guid>
      <dc:creator>Hatus</dc:creator>
      <dc:date>2011-01-05T13:50:25Z</dc:date>
    </item>
    <item>
      <title>AW:Change textbox size within macro condition</title>
      <link>https://community.qlik.com/t5/QlikView/Change-textbox-size-within-macro-condition/m-p/229116#M81073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I have solved the problem:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In VBScript exists the function ActiveDocument.GetApplication.WaitForIdle , it must be placed after a change in the interface. Doing it he code flow is paused and the refresh is done &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;Hatus wrote:for i = 0 to 10000&lt;BR /&gt; strIterable = strIterable &amp;amp; " " &amp;amp; i&lt;BR /&gt;&lt;BR /&gt; if i = 3000 then&lt;BR /&gt; pos.Width = 350&lt;BR /&gt; textBox.SetFrameDef frame&lt;BR /&gt; ActiveDocument.GetApplication.WaitForIdle&lt;BR /&gt; end if&lt;BR /&gt; next&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;Aquele abraço&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jan 2011 13:51:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-textbox-size-within-macro-condition/m-p/229116#M81073</guid>
      <dc:creator>Hatus</dc:creator>
      <dc:date>2011-01-05T13:51:08Z</dc:date>
    </item>
    <item>
      <title>AW:Change textbox size within macro condition</title>
      <link>https://community.qlik.com/t5/QlikView/Change-textbox-size-within-macro-condition/m-p/229117#M81074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I have solved the problem:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In VBScript exists the function ActiveDocument.GetApplication.WaitForIdle , it must be placed after a change in the interface. Doing it he code flow is paused and the refresh is done &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;Hatus wrote:for i = 0 to 10000&lt;BR /&gt; strIterable = strIterable &amp;amp; " " &amp;amp; i&lt;BR /&gt;&lt;BR /&gt; if i = 3000 then&lt;BR /&gt; pos.Width = 350&lt;BR /&gt; textBox.SetFrameDef frame&lt;BR /&gt; ActiveDocument.GetApplication.WaitForIdle&lt;BR /&gt; end if&lt;BR /&gt; next&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;Aquele abraço&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jan 2011 13:52:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-textbox-size-within-macro-condition/m-p/229117#M81074</guid>
      <dc:creator>Hatus</dc:creator>
      <dc:date>2011-01-05T13:52:12Z</dc:date>
    </item>
    <item>
      <title>AW:Change textbox size within macro condition</title>
      <link>https://community.qlik.com/t5/QlikView/Change-textbox-size-within-macro-condition/m-p/229118#M81075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I have solved the problem:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In VBScript exists the function ActiveDocument.GetApplication.WaitForIdle , it must be placed after a change in the interface. Doing it he code flow is paused and the refresh is done &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;Hatus wrote:for i = 0 to 10000&lt;BR /&gt; strIterable = strIterable &amp;amp; " " &amp;amp; i&lt;BR /&gt;&lt;BR /&gt; if i = 3000 then&lt;BR /&gt; pos.Width = 350&lt;BR /&gt; textBox.SetFrameDef frame&lt;BR /&gt; ActiveDocument.GetApplication.WaitForIdle&lt;BR /&gt; end if&lt;BR /&gt; next&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;Aquele abraço&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jan 2011 13:57:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-textbox-size-within-macro-condition/m-p/229118#M81075</guid>
      <dc:creator>Hatus</dc:creator>
      <dc:date>2011-01-05T13:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: Change textbox size within macro condition</title>
      <link>https://community.qlik.com/t5/QlikView/Change-textbox-size-within-macro-condition/m-p/229119#M81076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm also looking to find a solution on how to make a textbox resize in macro to make a progress bar. Had problems with docunits and conversion. This post gave me the answer:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="loading active_link" href="https://community.qlik.com/message/60704#60704" title="http://community.qlik.com/message/60704#60704"&gt;http://community.qlik.com/message/60704#60704&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I only needed the part:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tblrect.Width = 120&lt;/P&gt;&lt;P&gt;tbl.SetRect(tblrect)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thought I would share, hope it helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2012 21:04:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-textbox-size-within-macro-condition/m-p/229119#M81076</guid>
      <dc:creator>marcelo_7</dc:creator>
      <dc:date>2012-11-12T21:04:15Z</dc:date>
    </item>
  </channel>
</rss>

