<?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 ACAPI_RegisterModelessWindow‘s PaletteAPIControlCallBack couldn't debug in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/ACAPI-RegisterModelessWindow-s-PaletteAPIControlCallBack-couldn/m-p/276404#M3282</link>
    <description>&lt;DIV class="actalk-migrated-content"&gt;Hi.&lt;BR /&gt;I register modeless dialog by ACAPI_RegisterModelessWindow api.&lt;BR /&gt;But the breakpoint can not enter callback function when debugging.&lt;BR /&gt;I want to know why can not enter callback.&lt;/DIV&gt;</description>
    <pubDate>Thu, 29 Sep 2022 07:54:38 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-09-29T07:54:38Z</dc:date>
    <item>
      <title>ACAPI_RegisterModelessWindow‘s PaletteAPIControlCallBack couldn't debug</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/ACAPI-RegisterModelessWindow-s-PaletteAPIControlCallBack-couldn/m-p/276404#M3282</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;Hi.&lt;BR /&gt;I register modeless dialog by ACAPI_RegisterModelessWindow api.&lt;BR /&gt;But the breakpoint can not enter callback function when debugging.&lt;BR /&gt;I want to know why can not enter callback.&lt;/DIV&gt;</description>
      <pubDate>Thu, 29 Sep 2022 07:54:38 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/ACAPI-RegisterModelessWindow-s-PaletteAPIControlCallBack-couldn/m-p/276404#M3282</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-29T07:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: ACAPI_RegisterModelessWindow‘s PaletteAPIControlCallBack couldn't debug</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/ACAPI-RegisterModelessWindow-s-PaletteAPIControlCallBack-couldn/m-p/276405#M3283</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
The dialog you register should inherit from DG::Palette:&lt;BR /&gt;

&lt;PRE&gt;class FavoritePalette : public DG::Palette {};&lt;/PRE&gt;

Could you please show your ACAPI_RegisterModelessWindow() call?&lt;BR /&gt;
&lt;BR /&gt;
Also, make sure that you return APIAddOn_Preload from your CheckEnvironment() function.&lt;BR /&gt;
&lt;BR /&gt;
A trick: add a GUID for your palette, and generate the reference ID from it, to ensure that it's unique:
&lt;PRE&gt;const GS::Guid paletteGuid ("{DAA252EE-CFB4-42BA-8483-0D255D03D17E}");
const Int32 paletteRefId = (Int32) GS::GenerateHashValue (paletteGuid);
&lt;/PRE&gt;
then use these in your ACAPI_RegisterModelessWindow() call.&lt;BR /&gt;
&lt;BR /&gt;
Best, Akos</description>
      <pubDate>Mon, 02 Dec 2019 12:00:10 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/ACAPI-RegisterModelessWindow-s-PaletteAPIControlCallBack-couldn/m-p/276405#M3283</guid>
      <dc:creator>Akos Somorjai</dc:creator>
      <dc:date>2019-12-02T12:00:10Z</dc:date>
    </item>
    <item>
      <title>Re: ACAPI_RegisterModelessWindow‘s PaletteAPIControlCallBack couldn't debug</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/ACAPI-RegisterModelessWindow-s-PaletteAPIControlCallBack-couldn/m-p/276406#M3284</link>
      <description>&lt;BLOCKQUOTE&gt;Akos wrote:&lt;BR /&gt;
Hi,&lt;BR /&gt;
&lt;BR /&gt;
The dialog you register should inherit from DG::Palette:&lt;BR /&gt;

&lt;PRE&gt;class FavoritePalette : public DG::Palette {};&lt;/PRE&gt;

Could you please show your ACAPI_RegisterModelessWindow() call?&lt;BR /&gt;
&lt;BR /&gt;
Also, make sure that you return APIAddOn_Preload from your CheckEnvironment() function.&lt;BR /&gt;
&lt;BR /&gt;
A trick: add a GUID for your palette, and generate the reference ID from it, to ensure that it's unique:
&lt;PRE&gt;const GS::Guid paletteGuid ("{DAA252EE-CFB4-42BA-8483-0D255D03D17E}");
const Int32 paletteRefId = (Int32) GS::GenerateHashValue (paletteGuid);
&lt;/PRE&gt;
then use these in your ACAPI_RegisterModelessWindow() call.&lt;BR /&gt;
&lt;BR /&gt;
Best, Akos
&lt;/BLOCKQUOTE&gt;

Thanks. &lt;BR /&gt;
According to your method, this problem is solved.</description>
      <pubDate>Tue, 03 Dec 2019 01:18:14 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/ACAPI-RegisterModelessWindow-s-PaletteAPIControlCallBack-couldn/m-p/276406#M3284</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-12-03T01:18:14Z</dc:date>
    </item>
  </channel>
</rss>

