<?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 Adding a bitmap in custom contextual menu in ObjectARX Forum</title>
    <link>https://forums.autodesk.com/t5/objectarx-forum/adding-a-bitmap-in-custom-contextual-menu/m-p/3551348#M14469</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've created a custom contextual menu, and I'd like to add a bitmap (as icon) to agrement my menu. Standard ways to add bitmap to menu seem to not work, and after a few search, I've found an example on the ADN. You can find &lt;A target="_blank" href="http://adn.autodesk.com/adn/servlet/devnote?siteID=4814862&amp;amp;id=5507834&amp;amp;linkID=4900509"&gt;here&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It explains that developer needs to use GDI+ to load bitmap and create a &lt;SPAN&gt;MENUITEMINFO to edit or insert a menu item. Afer using this code, I was able to add an item in my menu with an icon, but the problem was that the entire graphical representation of the menu was modified (look at the image).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;IMG alt="custommenu_gdiplus" border="0" align="middle" title="custommenu_gdiplus" src="https://forums.autodesk.com/t5/image/serverpage/image-id/33734i374D2171C515E5FA/image-size/original?v=mpbl-1&amp;amp;px=-1" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;left side = original AutoCAD menu // right side = AutoCAD menu with custom menu appended&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;Has&lt;/SPAN&gt; &lt;SPAN&gt;anyone&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;already encountered this problem&lt;/SPAN&gt;&lt;SPAN&gt;?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;All suggestions are welcomed.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;</description>
    <pubDate>Wed, 25 Jul 2012 09:02:38 GMT</pubDate>
    <dc:creator>maisoui</dc:creator>
    <dc:date>2012-07-25T09:02:38Z</dc:date>
    <item>
      <title>Adding a bitmap in custom contextual menu</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/adding-a-bitmap-in-custom-contextual-menu/m-p/3551348#M14469</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've created a custom contextual menu, and I'd like to add a bitmap (as icon) to agrement my menu. Standard ways to add bitmap to menu seem to not work, and after a few search, I've found an example on the ADN. You can find &lt;A target="_blank" href="http://adn.autodesk.com/adn/servlet/devnote?siteID=4814862&amp;amp;id=5507834&amp;amp;linkID=4900509"&gt;here&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It explains that developer needs to use GDI+ to load bitmap and create a &lt;SPAN&gt;MENUITEMINFO to edit or insert a menu item. Afer using this code, I was able to add an item in my menu with an icon, but the problem was that the entire graphical representation of the menu was modified (look at the image).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;IMG alt="custommenu_gdiplus" border="0" align="middle" title="custommenu_gdiplus" src="https://forums.autodesk.com/t5/image/serverpage/image-id/33734i374D2171C515E5FA/image-size/original?v=mpbl-1&amp;amp;px=-1" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;left side = original AutoCAD menu // right side = AutoCAD menu with custom menu appended&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;Has&lt;/SPAN&gt; &lt;SPAN&gt;anyone&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;already encountered this problem&lt;/SPAN&gt;&lt;SPAN&gt;?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;All suggestions are welcomed.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jul 2012 09:02:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/adding-a-bitmap-in-custom-contextual-menu/m-p/3551348#M14469</guid>
      <dc:creator>maisoui</dc:creator>
      <dc:date>2012-07-25T09:02:38Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a bitmap in custom contextual menu</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/adding-a-bitmap-in-custom-contextual-menu/m-p/3551430#M14470</link>
      <description>&lt;P&gt;Hi Jonathan,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have seen a similar behavior&amp;nbsp;that was reproducible on 64 bit systems while it worked ok on 32 bit systems.&lt;/P&gt;
&lt;P&gt;We already have a change request logged for this behavior.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jul 2012 11:22:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/adding-a-bitmap-in-custom-contextual-menu/m-p/3551430#M14470</guid>
      <dc:creator>Balaji_Ram</dc:creator>
      <dc:date>2012-07-25T11:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a bitmap in custom contextual menu</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/adding-a-bitmap-in-custom-contextual-menu/m-p/3551442#M14471</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your reply. Yes, I forgot to mention that I develop on Windows 7 64 bits.&lt;/P&gt;&lt;P&gt;Is it possible to have a link on a tracking page for this request?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jul 2012 11:25:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/adding-a-bitmap-in-custom-contextual-menu/m-p/3551442#M14471</guid>
      <dc:creator>maisoui</dc:creator>
      <dc:date>2012-07-25T11:25:59Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a bitmap in custom contextual menu</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/adding-a-bitmap-in-custom-contextual-menu/m-p/3551624#M14472</link>
      <description>&lt;P&gt;Sorry, I do not have access to a&amp;nbsp;link that I can share with you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jul 2012 13:07:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/adding-a-bitmap-in-custom-contextual-menu/m-p/3551624#M14472</guid>
      <dc:creator>Balaji_Ram</dc:creator>
      <dc:date>2012-07-25T13:07:01Z</dc:date>
    </item>
  </channel>
</rss>

