<?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: Can't set icon to menu item in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Can-t-set-icon-to-menu-item/m-p/230267#M4164</link>
    <description>Just to make it clear:&lt;BR /&gt;
If you register a menu item using ACAPI_Register_Menu, then you must create an 'STR#' resource for the text of the menu items into your localized GRC file.&lt;BR /&gt;
You can set extra flags for a menu items using the '^' character.&lt;BR /&gt;
For example "^E3^ES^32650" means that this menu will be enabled also when a 3D or Section window is active (by default Add-Ons' menu items are enabled only when the 2D floor plan window is active) and the icon with 32650 identifier will be added to the menu item.&lt;BR /&gt;
The 32650 icon identifier refers to a 'GICN' icon resource defined in your GRC file.&lt;BR /&gt;
&lt;BR /&gt;
See all available flags inside the documentation: &lt;A href="http://archicadapi.graphisoft.com/documentation/required-resources" target="_blank"&gt;&lt;/A&gt;&lt;S&gt;&lt;A href="http://archicadapi.graphisoft.com/documentation/required-resources" target="_blank"&gt;&lt;/A&gt;&lt;A href="&amp;lt;/s&amp;gt;&amp;lt;LINK_TEXT text=&amp;quot;http://archicadapi.graphisoft.com/docum ... -resources&amp;quot;&amp;gt;http://archicadapi.graphisoft.com/documentation/required-resources&amp;lt;/LINK_TEXT&amp;gt;&amp;lt;e&amp;gt;"&gt;&lt;/A&gt;&lt;/S&gt;&lt;LINK_TEXT text="http://archicadapi.graphisoft.com/docum ... -resources"&gt;http://archicadapi.graphisoft.com/documentation/required-resources&lt;/LINK_TEXT&gt;&lt;E&gt;&lt;/E&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;Note that from ARCHICAD 20 'GICN' icon resources can be attached to menu items (previously you had to use 'GBMP')&lt;/B&gt;. The possible source image formats of 'GICN' icon resources are PNG and SVG (previously you had to use BMP).</description>
    <pubDate>Fri, 10 Aug 2018 14:42:35 GMT</pubDate>
    <dc:creator>Tibor Lorantfy</dc:creator>
    <dc:date>2018-08-10T14:42:35Z</dc:date>
    <item>
      <title>Can't set icon to menu item</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Can-t-set-icon-to-menu-item/m-p/230265#M4162</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;I try to assign to menu item "Show/close" the icon "Panel_icon".&lt;BR /&gt;Create icon with ID 30650&lt;BR /&gt;Place ID 32650 to menu text as ^32650.&lt;BR /&gt;But no icon pictures show in my menu (((.&lt;BR /&gt;------------------------------------&lt;BR /&gt;in RegisterInterface (void):&lt;BR /&gt;&lt;BR /&gt;err = ACAPI_Register_Menu (32503, 0, MenuCode_Extras, MenuFlag_Default);&lt;BR /&gt;------------------------------------&lt;BR /&gt;in file .grc:&lt;BR /&gt;&lt;BR /&gt;'STR#' 32503 "Solaris menu" {&lt;BR /&gt;/* [ ] */ "LabPP - Squares"&lt;BR /&gt;/* [ ] */ "Show/close^E3^ES^EE^EI^ED^EL^EW^ET^32650"&lt;BR /&gt;}&lt;BR /&gt;--------------------------------------&lt;BR /&gt;in file ...fix.grc:&lt;BR /&gt;&lt;BR /&gt;'GICN' 32650 "Settings Extra page icon" {&lt;BR /&gt;"Panel_Icon"&lt;BR /&gt;0 128 128&lt;BR /&gt;}&lt;BR /&gt;--------------------------------------&lt;/DIV&gt;</description>
      <pubDate>Tue, 06 Dec 2022 12:28:08 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Can-t-set-icon-to-menu-item/m-p/230265#M4162</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-12-06T12:28:08Z</dc:date>
    </item>
    <item>
      <title>Re: Can't set icon to menu item</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Can-t-set-icon-to-menu-item/m-p/230266#M4163</link>
      <description>O'h I'm so sorry))).&lt;BR /&gt;
No 'GICN', it must be 'GBMP'.&lt;BR /&gt;
All works properly)).</description>
      <pubDate>Tue, 07 Aug 2018 08:36:34 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Can-t-set-icon-to-menu-item/m-p/230266#M4163</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-07T08:36:34Z</dc:date>
    </item>
    <item>
      <title>Re: Can't set icon to menu item</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Can-t-set-icon-to-menu-item/m-p/230267#M4164</link>
      <description>Just to make it clear:&lt;BR /&gt;
If you register a menu item using ACAPI_Register_Menu, then you must create an 'STR#' resource for the text of the menu items into your localized GRC file.&lt;BR /&gt;
You can set extra flags for a menu items using the '^' character.&lt;BR /&gt;
For example "^E3^ES^32650" means that this menu will be enabled also when a 3D or Section window is active (by default Add-Ons' menu items are enabled only when the 2D floor plan window is active) and the icon with 32650 identifier will be added to the menu item.&lt;BR /&gt;
The 32650 icon identifier refers to a 'GICN' icon resource defined in your GRC file.&lt;BR /&gt;
&lt;BR /&gt;
See all available flags inside the documentation: &lt;A href="http://archicadapi.graphisoft.com/documentation/required-resources" target="_blank"&gt;&lt;/A&gt;&lt;S&gt;&lt;A href="http://archicadapi.graphisoft.com/documentation/required-resources" target="_blank"&gt;&lt;/A&gt;&lt;A href="&amp;lt;/s&amp;gt;&amp;lt;LINK_TEXT text=&amp;quot;http://archicadapi.graphisoft.com/docum ... -resources&amp;quot;&amp;gt;http://archicadapi.graphisoft.com/documentation/required-resources&amp;lt;/LINK_TEXT&amp;gt;&amp;lt;e&amp;gt;"&gt;&lt;/A&gt;&lt;/S&gt;&lt;LINK_TEXT text="http://archicadapi.graphisoft.com/docum ... -resources"&gt;http://archicadapi.graphisoft.com/documentation/required-resources&lt;/LINK_TEXT&gt;&lt;E&gt;&lt;/E&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;Note that from ARCHICAD 20 'GICN' icon resources can be attached to menu items (previously you had to use 'GBMP')&lt;/B&gt;. The possible source image formats of 'GICN' icon resources are PNG and SVG (previously you had to use BMP).</description>
      <pubDate>Fri, 10 Aug 2018 14:42:35 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Can-t-set-icon-to-menu-item/m-p/230267#M4164</guid>
      <dc:creator>Tibor Lorantfy</dc:creator>
      <dc:date>2018-08-10T14:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: Can't set icon to menu item</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Can-t-set-icon-to-menu-item/m-p/230268#M4165</link>
      <description>Thank you so much !)</description>
      <pubDate>Fri, 19 Oct 2018 09:33:27 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Can-t-set-icon-to-menu-item/m-p/230268#M4165</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-19T09:33:27Z</dc:date>
    </item>
  </channel>
</rss>

