<?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: DGShowModelessDialog wrong number of arguments in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/DGShowModelessDialog-wrong-number-of-arguments/m-p/147136#M6139</link>
    <description>Oh okay ! Thanks a lot Ralph !</description>
    <pubDate>Thu, 16 Dec 2010 11:50:23 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2010-12-16T11:50:23Z</dc:date>
    <item>
      <title>DGShowModelessDialog wrong number of arguments</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/DGShowModelessDialog-wrong-number-of-arguments/m-p/147134#M6137</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;Hello everyone.&lt;BR /&gt;&lt;BR /&gt;I need some help here because I've got a quite weird issue with the DGShowModelessDialog function.&lt;BR /&gt;Here's the code :&lt;BR /&gt;
&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;short idPalette;
//Creation of the blank palette (for test purposes)
idPalette = DGCreateBlankPalette(500, 60, DG_DLG_NOGROW, DG_DLG_CLOSE, DG_DLG_TOPCAPTION, DG_DLG_THICKFRAME, ModulePerso_Handler, 0);
//If the creation succeeded
if(idPalette != 0)
			{
				//We start processing events
				DGBeginProcessEvents(idPalette);
				//We show the palette
				DGShowModelessDialog(idPalette);
			}
&lt;/PRE&gt;
Then when I build the add-on, I've got 1 error, weird one thought, about :&lt;BR /&gt;"DGShowModelessDialog : function doesn't require 1 parameter"&lt;BR /&gt;&lt;BR /&gt;Thought that the function only requires the ID of the previously created blank palette !&lt;BR /&gt;Does someone have a clue on this ?&lt;BR /&gt;I took a look into the Dialog Manager 2.0 and i don't see where i'm wrong...&lt;BR /&gt;&lt;BR /&gt;Thanks for the help !&lt;/DIV&gt;</description>
      <pubDate>Thu, 03 Aug 2023 08:34:50 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/DGShowModelessDialog-wrong-number-of-arguments/m-p/147134#M6137</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-08-03T08:34:50Z</dc:date>
    </item>
    <item>
      <title>Re: DGShowModelessDialog wrong number of arguments</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/DGShowModelessDialog-wrong-number-of-arguments/m-p/147135#M6138</link>
      <description>&lt;BLOCKQUOTE&gt;atila-diffusion wrote:&lt;BR /&gt;I need some help here because I've got a quite weird issue with the DGShowModelessDialog function.&lt;BR /&gt;
...when I build the add-on, I've got 1 error, weird one thought, about :&lt;BR /&gt;
"DGShowModelessDialog : function doesn't require 1 parameter"&lt;/BLOCKQUOTE&gt;
From ArchiCAD 14, the call &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;DGShowModelessDialog&lt;E&gt;&lt;/E&gt; requires 2 parameters, although it isn't documented. The second parameter sets the focus for the dialog, e.g. &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;DG_DF_FIRST&lt;E&gt;&lt;/E&gt;.</description>
      <pubDate>Thu, 16 Dec 2010 11:30:34 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/DGShowModelessDialog-wrong-number-of-arguments/m-p/147135#M6138</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2010-12-16T11:30:34Z</dc:date>
    </item>
    <item>
      <title>Re: DGShowModelessDialog wrong number of arguments</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/DGShowModelessDialog-wrong-number-of-arguments/m-p/147136#M6139</link>
      <description>Oh okay ! Thanks a lot Ralph !</description>
      <pubDate>Thu, 16 Dec 2010 11:50:23 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/DGShowModelessDialog-wrong-number-of-arguments/m-p/147136#M6139</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-12-16T11:50:23Z</dc:date>
    </item>
  </channel>
</rss>

