<?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 Modal Dialogs in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Modal-Dialogs/m-p/249093#M2560</link>
    <description>&lt;DIV class="actalk-migrated-content"&gt;I am trying to create Modal Dialogs programmatically in a Add-On and I can not find a example to follow. All of the examples in DG-Test use the grc resource.&lt;BR /&gt;&lt;BR /&gt;Can anyone supply,or point me to, a example of creating a Modal Dialog from scratch stating with DGBLANKMODALDIALOG and building from there?? Just simple Buttons and Text Edit Boxes.&lt;BR /&gt;&lt;BR /&gt;I'm having particular trouble with the CallBack.&lt;/DIV&gt;</description>
    <pubDate>Tue, 14 Sep 2021 07:56:05 GMT</pubDate>
    <dc:creator>poco2013</dc:creator>
    <dc:date>2021-09-14T07:56:05Z</dc:date>
    <item>
      <title>Modal Dialogs</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Modal-Dialogs/m-p/249093#M2560</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;I am trying to create Modal Dialogs programmatically in a Add-On and I can not find a example to follow. All of the examples in DG-Test use the grc resource.&lt;BR /&gt;&lt;BR /&gt;Can anyone supply,or point me to, a example of creating a Modal Dialog from scratch stating with DGBLANKMODALDIALOG and building from there?? Just simple Buttons and Text Edit Boxes.&lt;BR /&gt;&lt;BR /&gt;I'm having particular trouble with the CallBack.&lt;/DIV&gt;</description>
      <pubDate>Tue, 14 Sep 2021 07:56:05 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Modal-Dialogs/m-p/249093#M2560</guid>
      <dc:creator>poco2013</dc:creator>
      <dc:date>2021-09-14T07:56:05Z</dc:date>
    </item>
    <item>
      <title>Re: Modal Dialogs</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Modal-Dialogs/m-p/249094#M2561</link>
      <description>Hi Gerry,&lt;BR /&gt;
&lt;BR /&gt;
The DG module of Graphisoft has an old deprecated C interface and a newer C++ interface.&lt;BR /&gt;
Using the old C interface you have to define callbacks and handle each event. It seems you're struggling with that...&lt;BR /&gt;
I recommend you to use the C++ interface. It's much more easier, just simply inherit your class from DG::ModalDialog base class. If you want to handle an event (for example button click), then override the corresponding virtual function.&lt;BR /&gt;
&lt;A href="https://archicadapi.graphisoft.com/hello-world-part-2-dialog-with-text-svg-icon-and-button " target="_blank"&gt;There is a very simple Modal dialog example at our blog.&lt;/A&gt; I recommend you to start with that.&lt;BR /&gt;
There is also a little more complex example at our blog, &lt;A href="https://archicadapi.graphisoft.com/archicad-maze-generator-add-on-tutorial-part-2" target="_blank"&gt;the Archicad Maze Generator dialog&lt;/A&gt;.</description>
      <pubDate>Tue, 09 Mar 2021 13:54:43 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Modal-Dialogs/m-p/249094#M2561</guid>
      <dc:creator>Tibor Lorantfy</dc:creator>
      <dc:date>2021-03-09T13:54:43Z</dc:date>
    </item>
  </channel>
</rss>

