<?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 Re: How to make progress bar move? in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-make-progress-bar-move/m-p/268700#M2385</link>
    <description>I have solved it. To make it move, you should use class "modeless" but not class "modal". Class "modal" will block the program to wait for action like a click or something else.</description>
    <pubDate>Thu, 13 Aug 2020 03:23:02 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-08-13T03:23:02Z</dc:date>
    <item>
      <title>How to make progress bar move?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-make-progress-bar-move/m-p/268693#M2378</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;Hi.&lt;BR /&gt;&lt;BR /&gt;I am trying to use DG::ProgressBar but I don't know how to make the bar move. It just stays still. Should I rewrite some functions?&lt;/DIV&gt;</description>
      <pubDate>Wed, 15 Sep 2021 07:54:50 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-make-progress-bar-move/m-p/268693#M2378</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-09-15T07:54:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to make progress bar move?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-make-progress-bar-move/m-p/268694#M2379</link>
      <description>I haven't used that specific control, but I assume &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;ProgressBar::SetValue&lt;E&gt;&lt;/E&gt; would do it.</description>
      <pubDate>Wed, 05 Aug 2020 07:43:38 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-make-progress-bar-move/m-p/268694#M2379</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2020-08-05T07:43:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to make progress bar move?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-make-progress-bar-move/m-p/268695#M2380</link>
      <description>&lt;BLOCKQUOTE&gt;Ralph wrote:&lt;BR /&gt;
I haven't used that specific control, but I assume &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;ProgressBar::SetValue&lt;E&gt;&lt;/E&gt; would do it.
&lt;/BLOCKQUOTE&gt;

Thank you. But I was wondering if the dialog can keep showing while the program call SetValue? I can only make the dialog show itself by calling "dialog.Invoke()". But the dialog shown by Invoke() seems to be a still one and the progress bar of it doesn't move.</description>
      <pubDate>Wed, 05 Aug 2020 08:11:02 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-make-progress-bar-move/m-p/268695#M2380</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-05T08:11:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to make progress bar move?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-make-progress-bar-move/m-p/268696#M2381</link>
      <description>&lt;BLOCKQUOTE&gt;scandi wrote:&lt;BR /&gt;I was wondering if the dialog can keep showing while the program call SetValue? I can only make the dialog show itself by calling "dialog.Invoke()". But the dialog shown by Invoke() seems to be a still one and the progress bar of it doesn't move.&lt;/BLOCKQUOTE&gt;

What is the context? Are you displaying something like a progress window while a process is running? If so, you probably want a palette rather than a modeless dialog. You might need to call a redraw method on a progress bar if the value is changed too.&lt;BR /&gt;
&lt;BR /&gt;
Also, if this is a progress window, you might want to use Archicad's standard process feedback UI. Take a look at the documentation for &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;APIIo_InitProcessWindowID&lt;E&gt;&lt;/E&gt; - it provides a code sample. There's probably a C++ wrapper for that too if you hunt around - the documentation for this is mostly absent though.</description>
      <pubDate>Wed, 05 Aug 2020 09:24:41 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-make-progress-bar-move/m-p/268696#M2381</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2020-08-05T09:24:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to make progress bar move?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-make-progress-bar-move/m-p/268697#M2382</link>
      <description>&lt;BLOCKQUOTE&gt;Ralph wrote:&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;scandi wrote:&lt;BR /&gt;I was wondering if the dialog can keep showing while the program call SetValue? I can only make the dialog show itself by calling "dialog.Invoke()". But the dialog shown by Invoke() seems to be a still one and the progress bar of it doesn't move.&lt;/BLOCKQUOTE&gt;

What is the context? Are you displaying something like a progress window while a process is running? If so, you probably want a palette rather than a modeless dialog. You might need to call a redraw method on a progress bar if the value is changed too.&lt;BR /&gt;
&lt;BR /&gt;
Also, if this is a progress window, you might want to use Archicad's standard process feedback UI. Take a look at the documentation for &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;APIIo_InitProcessWindowID&lt;E&gt;&lt;/E&gt; - it provides a code sample. There's probably a C++ wrapper for that too if you hunt around - the documentation for this is mostly absent though.
&lt;/BLOCKQUOTE&gt;

Thank you. I will try the palette. Is there any sample for that?</description>
      <pubDate>Wed, 05 Aug 2020 09:46:42 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-make-progress-bar-move/m-p/268697#M2382</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-05T09:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to make progress bar move?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-make-progress-bar-move/m-p/268698#M2383</link>
      <description>&lt;BLOCKQUOTE&gt;scandi wrote:&lt;BR /&gt;I will try the palette. Is there any sample for that?&lt;/BLOCKQUOTE&gt;
Take a look at &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;OwnerDrawnListBoxPalette&lt;E&gt;&lt;/E&gt; in DG_Test or &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;BrowserPalette&lt;E&gt;&lt;/E&gt; in BrowserControl.</description>
      <pubDate>Wed, 05 Aug 2020 11:41:00 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-make-progress-bar-move/m-p/268698#M2383</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2020-08-05T11:41:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to make progress bar move?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-make-progress-bar-move/m-p/268699#M2384</link>
      <description>&lt;BLOCKQUOTE&gt;Ralph wrote:&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;scandi wrote:&lt;BR /&gt;I will try the palette. Is there any sample for that?&lt;/BLOCKQUOTE&gt;
Take a look at &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;OwnerDrawnListBoxPalette&lt;E&gt;&lt;/E&gt; in DG_Test or &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;BrowserPalette&lt;E&gt;&lt;/E&gt; in BrowserControl.
&lt;/BLOCKQUOTE&gt;
Thanks a lot!</description>
      <pubDate>Thu, 06 Aug 2020 02:41:55 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-make-progress-bar-move/m-p/268699#M2384</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-06T02:41:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to make progress bar move?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-make-progress-bar-move/m-p/268700#M2385</link>
      <description>I have solved it. To make it move, you should use class "modeless" but not class "modal". Class "modal" will block the program to wait for action like a click or something else.</description>
      <pubDate>Thu, 13 Aug 2020 03:23:02 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-make-progress-bar-move/m-p/268700#M2385</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-13T03:23:02Z</dc:date>
    </item>
  </channel>
</rss>

