<?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: DG::PopUp.SetSize() and DG::PopUp.SetRect() not working on Win11 in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/DG-PopUp-SetSize-and-DG-PopUp-SetRect-not-working-on-Win11/m-p/394287#M910</link>
    <description>&lt;P&gt;Found it. When we are creating pop-up/combo item, the DG::Rect() is void:&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;PopUpFoo (GetReference(), DG::Rect(), POPUP_VSIZE, POPUP_TEXTOFFSET)
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It should have been initialized with values:&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;PopUpFoo (GetReference(), DG::Rect(XPOS, YPOS, XPOS + POPUP_WIDTH, YPOS + POPUP_HEIGHT), POPUP_VSIZE, POPUP_TEXTOFFSET)&lt;/LI-CODE&gt;</description>
    <pubDate>Fri, 04 Aug 2023 10:01:46 GMT</pubDate>
    <dc:creator>ReignBough</dc:creator>
    <dc:date>2023-08-04T10:01:46Z</dc:date>
    <item>
      <title>DG::PopUp.SetSize() and DG::PopUp.SetRect() not working on Win11</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/DG-PopUp-SetSize-and-DG-PopUp-SetRect-not-working-on-Win11/m-p/385043#M909</link>
      <description>&lt;P&gt;We have an add-on with a DG::PopUp that works on Win10 below using SetSize() and SetRect(). But when we use the add-on on a Win11, the popup did not show.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried modifying the code using SetPosition(), SetWidth(), and SetHeight() instead, and the popup did show.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this a bug or there is a new way to call SetSize() and SetRect() for DG::PopUp?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BTW, for other DG items that we used, the SetSize() and SetRect() are working fine. But we are not sure if this is the case for all of DG items.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;EDIT (2023-Jun-26):&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Apparently, the content of the DG::PopUp is also bugged. When clicking on the item, the list contains nothing but blanks. A lot of blanks.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2023 10:03:14 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/DG-PopUp-SetSize-and-DG-PopUp-SetRect-not-working-on-Win11/m-p/385043#M909</guid>
      <dc:creator>ReignBough</dc:creator>
      <dc:date>2023-07-11T10:03:14Z</dc:date>
    </item>
    <item>
      <title>Re: DG::PopUp.SetSize() and DG::PopUp.SetRect() not working on Win11</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/DG-PopUp-SetSize-and-DG-PopUp-SetRect-not-working-on-Win11/m-p/394287#M910</link>
      <description>&lt;P&gt;Found it. When we are creating pop-up/combo item, the DG::Rect() is void:&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;PopUpFoo (GetReference(), DG::Rect(), POPUP_VSIZE, POPUP_TEXTOFFSET)
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It should have been initialized with values:&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;PopUpFoo (GetReference(), DG::Rect(XPOS, YPOS, XPOS + POPUP_WIDTH, YPOS + POPUP_HEIGHT), POPUP_VSIZE, POPUP_TEXTOFFSET)&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 04 Aug 2023 10:01:46 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/DG-PopUp-SetSize-and-DG-PopUp-SetRect-not-working-on-Win11/m-p/394287#M910</guid>
      <dc:creator>ReignBough</dc:creator>
      <dc:date>2023-08-04T10:01:46Z</dc:date>
    </item>
  </channel>
</rss>

