<?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: PopUp control's item count in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/PopUp-control-s-item-count/m-p/692650#M10776</link>
    <description>&lt;P&gt;I haven't found any problems using&amp;nbsp;&lt;SPAN&gt;&lt;EM&gt;DGPopUpInsertItem&lt;/EM&gt;. Could you post a code snippet showing how you are using the call? The parameters are:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;dialId&lt;/STRONG&gt;: The dialog identifier&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;item&lt;/STRONG&gt;: The index of the item in the dialog (the target popup control)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;popupItem&lt;/STRONG&gt;: The index of the position to insert the new item (Note that this is 1-based, i.e. inserting at the top of the menu is index 1). This can also be &amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;DG_POPUP_BOTTOM&lt;/EM&gt; if you want to append a menu item at the bottom.&lt;/P&gt;</description>
    <pubDate>Wed, 11 Feb 2026 10:29:52 GMT</pubDate>
    <dc:creator>Ralph Wessel</dc:creator>
    <dc:date>2026-02-11T10:29:52Z</dc:date>
    <item>
      <title>PopUp control's item count</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/PopUp-control-s-item-count/m-p/692598#M10774</link>
      <description>&lt;P&gt;There was a problem inserting items into the PopUp control.&lt;BR /&gt;Some of the items I inserted were not displayed.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;After checking, it seems the problem was caused by the data type of popupItem in DGPopUpInsertItem (short dialId, short item, short popupItem). I thought this was the cause because the number of items displayed was 32767.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is this the correct cause? If so, there's no other way than to split the PopUp control, right?&lt;/P&gt;</description>
      <pubDate>Wed, 11 Feb 2026 02:22:31 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/PopUp-control-s-item-count/m-p/692598#M10774</guid>
      <dc:creator>YONGWOO KIM</dc:creator>
      <dc:date>2026-02-11T02:22:31Z</dc:date>
    </item>
    <item>
      <title>Re: PopUp control's item count</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/PopUp-control-s-item-count/m-p/692650#M10776</link>
      <description>&lt;P&gt;I haven't found any problems using&amp;nbsp;&lt;SPAN&gt;&lt;EM&gt;DGPopUpInsertItem&lt;/EM&gt;. Could you post a code snippet showing how you are using the call? The parameters are:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;dialId&lt;/STRONG&gt;: The dialog identifier&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;item&lt;/STRONG&gt;: The index of the item in the dialog (the target popup control)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;popupItem&lt;/STRONG&gt;: The index of the position to insert the new item (Note that this is 1-based, i.e. inserting at the top of the menu is index 1). This can also be &amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;DG_POPUP_BOTTOM&lt;/EM&gt; if you want to append a menu item at the bottom.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Feb 2026 10:29:52 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/PopUp-control-s-item-count/m-p/692650#M10776</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2026-02-11T10:29:52Z</dc:date>
    </item>
    <item>
      <title>Re: PopUp control's item count</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/PopUp-control-s-item-count/m-p/692655#M10777</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Unfortunately the control is using short type also for the items, so the maximum number it can contain is 32767.&lt;/P&gt;
&lt;P&gt;Splitting it up, or pre-filtering is a workaround.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Tamás&lt;/P&gt;</description>
      <pubDate>Wed, 11 Feb 2026 12:17:23 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/PopUp-control-s-item-count/m-p/692655#M10777</guid>
      <dc:creator>Tamas Polyak</dc:creator>
      <dc:date>2026-02-11T12:17:23Z</dc:date>
    </item>
  </channel>
</rss>

