<?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 Palette Window Instantly disappears in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Palette-Window-Instantly-disappears/m-p/368580#M1354</link>
    <description>&lt;P&gt;Dear GS-Community,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've been working on an AddOn, but im having trouble with the Palettes in ArchiCAD. I tried to copy code from DG_Test Example AddOn where a Palette was built (-&amp;gt;OwnerDrawnListBox). But when i execute my AddOn, the Palette instantly disappears. When I compile and execute the example AddOn it works fine, but for my AddOn it doesn't. I copied the Code for "FreeData()" and "Initialize()" into the AddOnMain, but that also didn't make a difference.&lt;/P&gt;&lt;P&gt;How can the Example AddOn work but when i copy everything into my AddOn, it just disappears.&lt;/P&gt;&lt;P&gt;Did anyone had the same problem or knows whats going on?&lt;/P&gt;&lt;P&gt;I put my Code in a zip, you'll find my AddOnMain, my DialogTable and Graphisofts OwnerDrawnListBoxPalette.&lt;/P&gt;&lt;P&gt;Thanks for any Help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Dayiz&lt;/P&gt;</description>
    <pubDate>Mon, 23 Jan 2023 16:38:38 GMT</pubDate>
    <dc:creator>Dayiz</dc:creator>
    <dc:date>2023-01-23T16:38:38Z</dc:date>
    <item>
      <title>Palette Window Instantly disappears</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Palette-Window-Instantly-disappears/m-p/368580#M1354</link>
      <description>&lt;P&gt;Dear GS-Community,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've been working on an AddOn, but im having trouble with the Palettes in ArchiCAD. I tried to copy code from DG_Test Example AddOn where a Palette was built (-&amp;gt;OwnerDrawnListBox). But when i execute my AddOn, the Palette instantly disappears. When I compile and execute the example AddOn it works fine, but for my AddOn it doesn't. I copied the Code for "FreeData()" and "Initialize()" into the AddOnMain, but that also didn't make a difference.&lt;/P&gt;&lt;P&gt;How can the Example AddOn work but when i copy everything into my AddOn, it just disappears.&lt;/P&gt;&lt;P&gt;Did anyone had the same problem or knows whats going on?&lt;/P&gt;&lt;P&gt;I put my Code in a zip, you'll find my AddOnMain, my DialogTable and Graphisofts OwnerDrawnListBoxPalette.&lt;/P&gt;&lt;P&gt;Thanks for any Help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Dayiz&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2023 16:38:38 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Palette-Window-Instantly-disappears/m-p/368580#M1354</guid>
      <dc:creator>Dayiz</dc:creator>
      <dc:date>2023-01-23T16:38:38Z</dc:date>
    </item>
    <item>
      <title>Re: Palette Window Instantly disappears</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Palette-Window-Instantly-disappears/m-p/368596#M1355</link>
      <description>&lt;P&gt;I would try to replace the return value of&amp;nbsp;&lt;FONT face="courier new,courier"&gt;CheckEnvironment&lt;/FONT&gt; from&amp;nbsp;&lt;FONT face="courier new,courier"&gt;APIAddon_Normal&lt;/FONT&gt; to&amp;nbsp;&lt;FONT face="courier new,courier"&gt;APIAddon_Preload&lt;/FONT&gt;. This will make your add-on preloaded which means it will be kept in the memory during the entire Archicad session. Normal add-ons are loaded/unloaded every time they used, so this can be the cause of your palette disappearing immediately (the add-on is just unloaded after the call).&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2023 21:15:13 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Palette-Window-Instantly-disappears/m-p/368596#M1355</guid>
      <dc:creator>kovacsv</dc:creator>
      <dc:date>2023-01-23T21:15:13Z</dc:date>
    </item>
    <item>
      <title>Re: Palette Window Instantly disappears</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Palette-Window-Instantly-disappears/m-p/368788#M1356</link>
      <description>&lt;P&gt;That worked, thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2023 10:27:54 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Palette-Window-Instantly-disappears/m-p/368788#M1356</guid>
      <dc:creator>Dayiz</dc:creator>
      <dc:date>2023-01-25T10:27:54Z</dc:date>
    </item>
  </channel>
</rss>

