<?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: How to add custom icon to the addon menu item? in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-add-custom-icon-to-the-addon-menu-item/m-p/148905#M6524</link>
    <description>I have used GICN in button icons and the transparency works as you explained. But in the menu items I cannot use 'GICN'. I'm trying to get transparency to 'GBMP'. &lt;BR /&gt;
 &lt;BR /&gt;
Documentation says: &lt;BR /&gt;
 
&lt;BLOCKQUOTE&gt; &lt;BR /&gt;
The picture itself must be a bitmap resource ('GBMP') with the resource ID following the ^ character. 
&lt;/BLOCKQUOTE&gt; &lt;BR /&gt;
 &lt;BR /&gt;
Although the ArchiCAD DevKit documentations is good. For Java developer as me this is far from fun. Three platforms (win, intelmac, powerpc), three different IDE's (visualstudio, xcode, codewarrior), three different DevKits (10, 11, 12). That is a configuration hell.</description>
    <pubDate>Tue, 20 Jan 2009 08:01:25 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2009-01-20T08:01:25Z</dc:date>
    <item>
      <title>How to add custom icon to the addon menu item?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-add-custom-icon-to-the-addon-menu-item/m-p/148900#M6519</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;Addon menu is registered in RegisterInterface function: &lt;BR /&gt;&lt;BR /&gt;ACAPI_Register_Menu (32501, 0, MenuCode_UserDef, MenuFlag_Default); &lt;BR /&gt;&lt;BR /&gt;How to add custom icon to the addon menu item?&lt;/DIV&gt;</description>
      <pubDate>Fri, 04 Aug 2023 14:35:13 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-add-custom-icon-to-the-addon-menu-item/m-p/148900#M6519</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-08-04T14:35:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to add custom icon to the addon menu item?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-add-custom-icon-to-the-addon-menu-item/m-p/148901#M6520</link>
      <description>&lt;BLOCKQUOTE&gt;Matti wrote:&lt;BR /&gt;Addon menu is registered in RegisterInterface function: &lt;BR /&gt;
ACAPI_Register_Menu (32501, 0, MenuCode_UserDef, MenuFlag_Default); &lt;BR /&gt;
How to add custom icon to the addon menu item?&lt;/BLOCKQUOTE&gt;
You can see the answer in the documentation for Structure of an Add-on/Required Resources:
&lt;PRE&gt;'STR#' 32500 "Menu strings" {
/* [  1] */     "Database Tracker"
/* [  2] */         "Enable red walls^32601"
/* [  3] */         "-"
/* [  4] */         "Enable column links"
/* [  5] */         "List links (selection)^S"
/* [  6] */         "List links (database)"
/* [  7] */         "-"
/* [  8] */         "List walls with assignments"
}&lt;/PRE&gt;
To quote:&lt;BLOCKQUOTE&gt;API wrote:&lt;BR /&gt;You can see that the name of the first command ends with the string "^32601". This extension instructs ArchiCAD to assign a custom picture to the given menu item. The picture itself must be a bitmap resource ('GBMP') with the resource ID following the ^ character.&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Wed, 14 Jan 2009 13:18:28 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-add-custom-icon-to-the-addon-menu-item/m-p/148901#M6520</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2009-01-14T13:18:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to add custom icon to the addon menu item?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-add-custom-icon-to-the-addon-menu-item/m-p/148902#M6521</link>
      <description>Thanks a lot, it worked!</description>
      <pubDate>Thu, 15 Jan 2009 11:12:32 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-add-custom-icon-to-the-addon-menu-item/m-p/148902#M6521</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-01-15T11:12:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to add custom icon to the addon menu item?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-add-custom-icon-to-the-addon-menu-item/m-p/148903#M6522</link>
      <description>I have couple of questions more: &lt;BR /&gt;
 &lt;BR /&gt;
I get the icon to the menu item, but how the make the background transparent? Image format is bmp. Setting white as transparent in the palette editor does't help. &lt;BR /&gt;
 &lt;BR /&gt;
The other issue is that grc compiler does't move bmp images defined in 'GBMP' to the object folder. I have to move the bmp's manually. With 'GICN' this working fine.  Any ideas?</description>
      <pubDate>Mon, 19 Jan 2009 07:33:53 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-add-custom-icon-to-the-addon-menu-item/m-p/148903#M6522</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-01-19T07:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to add custom icon to the addon menu item?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-add-custom-icon-to-the-addon-menu-item/m-p/148904#M6523</link>
      <description>I had the same question when I wrote my first add-on, as it seemed that the GRC stuff was not well-documented.&lt;BR /&gt;
&lt;BR /&gt;
Take a look at the example called "Navigator_Test".&lt;BR /&gt;
&lt;BR /&gt;
Look in RFIX&amp;gt;Images and note the green color background.  It has RGB values of (0,128,128).&lt;BR /&gt;
&lt;BR /&gt;
Then, look at the matching GRC file, an excerpt is here:&lt;BR /&gt;

&lt;PRE&gt;'GICN' 32411 "Section Link" {
          "SectionLink"
          0  128  128
}&lt;/PRE&gt;

This says that the icon resource number 32411 will be named "Section Link" and comes from a graphics file SectionLink.* with an RGB transparency color of (0,128,128).&lt;BR /&gt;
&lt;BR /&gt;
The API documentation is not always complete, or organized in a way to make it easy to learn... but the many examples are the key to learning.  Do not skip over them.  Compared to visual resource environments such as available on most platforms, the cross-platform resource management tools for the devkit feel very much like you're back in the 1970's.  A bit painful, but the result is at least cross-platform.&lt;BR /&gt;
&lt;BR /&gt;
Cheers,&lt;BR /&gt;
Karl</description>
      <pubDate>Mon, 19 Jan 2009 17:20:40 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-add-custom-icon-to-the-addon-menu-item/m-p/148904#M6523</guid>
      <dc:creator>Karl Ottenstein</dc:creator>
      <dc:date>2009-01-19T17:20:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to add custom icon to the addon menu item?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-add-custom-icon-to-the-addon-menu-item/m-p/148905#M6524</link>
      <description>I have used GICN in button icons and the transparency works as you explained. But in the menu items I cannot use 'GICN'. I'm trying to get transparency to 'GBMP'. &lt;BR /&gt;
 &lt;BR /&gt;
Documentation says: &lt;BR /&gt;
 
&lt;BLOCKQUOTE&gt; &lt;BR /&gt;
The picture itself must be a bitmap resource ('GBMP') with the resource ID following the ^ character. 
&lt;/BLOCKQUOTE&gt; &lt;BR /&gt;
 &lt;BR /&gt;
Although the ArchiCAD DevKit documentations is good. For Java developer as me this is far from fun. Three platforms (win, intelmac, powerpc), three different IDE's (visualstudio, xcode, codewarrior), three different DevKits (10, 11, 12). That is a configuration hell.</description>
      <pubDate>Tue, 20 Jan 2009 08:01:25 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-add-custom-icon-to-the-addon-menu-item/m-p/148905#M6524</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-01-20T08:01:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to add custom icon to the addon menu item?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-add-custom-icon-to-the-addon-menu-item/m-p/148906#M6525</link>
      <description>&lt;BLOCKQUOTE&gt;Matti wrote:&lt;BR /&gt;I have used GICN in button icons and the transparency works as you explained. But in the menu items I cannot use 'GICN'. I'm trying to get transparency to 'GBMP'. 
 &lt;/BLOCKQUOTE&gt;

The transparent section should have RGB = (192,192,192), and it should be a GBMP.&lt;BR /&gt;
&lt;BR /&gt;
HTH,&lt;BR /&gt;
&lt;BR /&gt;
Akos</description>
      <pubDate>Thu, 05 Feb 2009 16:02:53 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-add-custom-icon-to-the-addon-menu-item/m-p/148906#M6525</guid>
      <dc:creator>Akos Somorjai</dc:creator>
      <dc:date>2009-02-05T16:02:53Z</dc:date>
    </item>
  </channel>
</rss>

