<?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: Dialog function errors in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Dialog-function-errors/m-p/207481#M5345</link>
    <description>&lt;B&gt;On EDIT 1&lt;/B&gt;&lt;BR /&gt;
&lt;BR /&gt;
Found out that &lt;FONT color="#808080"&gt;&lt;B&gt;DG_BT_ICONTEXT&lt;/B&gt;&lt;/FONT&gt; is now used as sub-type for buttons.</description>
    <pubDate>Wed, 10 Sep 2014 06:27:43 GMT</pubDate>
    <dc:creator>ReignBough</dc:creator>
    <dc:date>2014-09-10T06:27:43Z</dc:date>
    <item>
      <title>Dialog function errors</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Dialog-function-errors/m-p/207480#M5344</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;Is there a way to get the error a dialog function encounters? Example, &lt;FONT color="#808080"&gt;&lt;STRONG&gt;DGAppendDialogItem()&lt;/STRONG&gt;&lt;/FONT&gt; returns 0 if an error was encountered. But what is this error? Did I pass a wrong ID, type, sub-type, etc? Is there a function that I can call to get this error, like &lt;FONT color="#808080"&gt;&lt;STRONG&gt;GetLastError()&lt;/STRONG&gt;&lt;/FONT&gt;.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;EDIT 1: 2014 Sep 10&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;I asked this since I am unable to add a button on AC18. Here is my code:&lt;BR /&gt;
&lt;PRE&gt;short my_idx = DGAppendDialogItem(iDialId, DG_ITM_BUTTON, DG_BT_TEXT, 0, 10, 10, 80, 30);
if (my_idx == 0) WriteReport("[DialogTypes] Error! Cannot append ItemType: DG_ITM_BUTTON");
DGShowItem(iDialId, my_idx);
DGSetItemText(iDialId, my_idx, "Okay");
&lt;/PRE&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 01 Aug 2023 12:20:07 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Dialog-function-errors/m-p/207480#M5344</guid>
      <dc:creator>ReignBough</dc:creator>
      <dc:date>2023-08-01T12:20:07Z</dc:date>
    </item>
    <item>
      <title>Re: Dialog function errors</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Dialog-function-errors/m-p/207481#M5345</link>
      <description>&lt;B&gt;On EDIT 1&lt;/B&gt;&lt;BR /&gt;
&lt;BR /&gt;
Found out that &lt;FONT color="#808080"&gt;&lt;B&gt;DG_BT_ICONTEXT&lt;/B&gt;&lt;/FONT&gt; is now used as sub-type for buttons.</description>
      <pubDate>Wed, 10 Sep 2014 06:27:43 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Dialog-function-errors/m-p/207481#M5345</guid>
      <dc:creator>ReignBough</dc:creator>
      <dc:date>2014-09-10T06:27:43Z</dc:date>
    </item>
  </channel>
</rss>

