<?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 Syntax for adding Icon to Pulldown menu. in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/syntax-for-adding-icon-to-pulldown-menu/m-p/8842400#M87720</link>
    <description>&lt;P&gt;I know you can add icon to pull down menus the way ACAD has in their default menus.&amp;nbsp; What would be the syntax for doing this in an mnu file?&amp;nbsp; I tried using the syntax I used to use in the toolbars but this doesn't work.&amp;nbsp; I don't want to add this via the CUI because editing large menus becomes incredibly time consuming.&amp;nbsp; It found a few customization guides for older versions but they don't seem to cover this.&amp;nbsp; Maybe it wasn't an option then.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have an excel sheet set up to compile all the code with "textjoin" which I then copy/past into the mnu file for loading. I want to add this icon sytax to this sheet.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 10 Jun 2019 14:37:02 GMT</pubDate>
    <dc:creator>Julio_Soto</dc:creator>
    <dc:date>2019-06-10T14:37:02Z</dc:date>
    <item>
      <title>Syntax for adding Icon to Pulldown menu.</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/syntax-for-adding-icon-to-pulldown-menu/m-p/8842400#M87720</link>
      <description>&lt;P&gt;I know you can add icon to pull down menus the way ACAD has in their default menus.&amp;nbsp; What would be the syntax for doing this in an mnu file?&amp;nbsp; I tried using the syntax I used to use in the toolbars but this doesn't work.&amp;nbsp; I don't want to add this via the CUI because editing large menus becomes incredibly time consuming.&amp;nbsp; It found a few customization guides for older versions but they don't seem to cover this.&amp;nbsp; Maybe it wasn't an option then.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have an excel sheet set up to compile all the code with "textjoin" which I then copy/past into the mnu file for loading. I want to add this icon sytax to this sheet.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2019 14:37:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/syntax-for-adding-icon-to-pulldown-menu/m-p/8842400#M87720</guid>
      <dc:creator>Julio_Soto</dc:creator>
      <dc:date>2019-06-10T14:37:02Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax for adding Icon to Pulldown menu.</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/syntax-for-adding-icon-to-pulldown-menu/m-p/8842546#M87721</link>
      <description>&lt;P&gt;I have not done this in years but if I remember correctly, if you have your button images correctly assigned to your buttons ( I use a compiled DLL same name as .mns ) the images in the pulldown *should showup when you refefence the same button command.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's a snippet of what I have:&lt;/P&gt;&lt;PRE&gt;//	Old School but backwards compatible and AutoCAD automagically converts to CUI for newer versions :)
//

***MENUGROUP=IDT

***POP30
**IDT
IDT_M0	[IDT]
		[Draw &amp;amp;Pipes]^C^CIDT_InsertPipes;
		[Paint Pipes]^C^CIDT_PaintBrush;
		[Pipe Hops]^C^CHop;
		[Pipe Labels]^C^CIDT_PipeLabels;

***TOOLBARS

**IDT_PIPES
IDT_PIPES_0	[_Toolbar("IDT_Pipes",_Floating, _Show, 380, 160, 1)]
IDT_PIPES_1	[_Button("Pipes", "IDT_InsertPipes", "IDT_InsertPipes")]^C^CIDT_InsertPipes;
IDT_PIPES_2	[_Button("Paint Pipes", "IDT_PaintBrush", "IDT_PaintBrush")]^C^CIDT_PaintBrush;
IDT_PIPES_3	[_Button("Pipe Hops", "IDT_PipeHops", "IDT_PipeHops")]^C^CHop;
IDT_PIPES_3	[_Button("Pipe Labels", "IDT_PipeLabels", "IDT_PipeLabels")]^C^CIDT_PipeLabels;

***HELPSTRINGS

//
//      End of AutoCAD menu file - C:\Program Files\AutoCAD Tools\IDT\Menu\IDT.mns
//&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 280px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/645797i8E450708DD3E2A7E/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2019 15:48:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/syntax-for-adding-icon-to-pulldown-menu/m-p/8842546#M87721</guid>
      <dc:creator>ronjonp</dc:creator>
      <dc:date>2019-06-10T15:48:08Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax for adding Icon to Pulldown menu.</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/syntax-for-adding-icon-to-pulldown-menu/m-p/8842681#M87722</link>
      <description>&lt;P&gt;Oh interesting.&amp;nbsp; So I need to create toolbar buttons for all of my commands?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For my pull down, it's nested an when you get to the end of the tree many of the command have the same name.&amp;nbsp; For example, the command may say "Front" for the front view of a block.&amp;nbsp; in my CUI there are quite a few commands with the name "Front".&amp;nbsp; I suppose as long as the ID is different it shouldn't be a problem.&amp;nbsp; I noticed that in the cui each button gets an "Element ID".&amp;nbsp; Is that what "IDT_PIPES_1" refers to in your example?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm going to do some experimenting later today and report back.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2019 16:43:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/syntax-for-adding-icon-to-pulldown-menu/m-p/8842681#M87722</guid>
      <dc:creator>Julio_Soto</dc:creator>
      <dc:date>2019-06-10T16:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax for adding Icon to Pulldown menu.</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/syntax-for-adding-icon-to-pulldown-menu/m-p/8843033#M87723</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7322983"&gt;@Julio_Soto&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;Oh interesting.&amp;nbsp; So I need to create toolbar buttons for all of my commands?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For my pull down, it's nested an when you get to the end of the tree many of the command have the same name.&amp;nbsp; For example, the command may say "Front" for the front view of a block.&amp;nbsp; in my CUI there are quite a few commands with the name "Front".&amp;nbsp; I suppose as long as the ID is different it shouldn't be a problem.&amp;nbsp; I noticed that in the cui each button gets an "Element ID".&amp;nbsp; &lt;STRONG&gt;Is that what "IDT_PIPES_1" refers to in your example?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm going to do some experimenting later today and report back.&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I think those element ID's can be tied to the&amp;nbsp;***HELPSTRINGS section so the buttons can have a description when you hover over them. Like I said though .. this is some voodoo magic I messed with many years ago so take my advice with a grain of salt :-).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure if you've seen &lt;A href="http://www.mhhe.com/engcs/drawgr/leach2000/ch46.pdf" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;THIS&lt;/STRONG&gt;&lt;/A&gt; ... but there is a ton of info in it for customizing old school menus.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2019 19:30:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/syntax-for-adding-icon-to-pulldown-menu/m-p/8843033#M87723</guid>
      <dc:creator>ronjonp</dc:creator>
      <dc:date>2019-06-10T19:30:20Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax for adding Icon to Pulldown menu.</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/syntax-for-adding-icon-to-pulldown-menu/m-p/11388119#M87724</link>
      <description>&lt;P&gt;I had forgotten that I posted this question already.&amp;nbsp; I copy/pasted your example and reworked it but I don't really understand what's happening lol.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Julio_Soto_0-1661787082586.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1109310i105B437A36EB069E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Julio_Soto_0-1661787082586.png" alt="Julio_Soto_0-1661787082586.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2022 15:31:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/syntax-for-adding-icon-to-pulldown-menu/m-p/11388119#M87724</guid>
      <dc:creator>Julio_Soto</dc:creator>
      <dc:date>2022-08-29T15:31:27Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax for adding Icon to Pulldown menu.</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/syntax-for-adding-icon-to-pulldown-menu/m-p/11388265#M87725</link>
      <description>&lt;P&gt;I did another test, and it appears as the menu item and toolbar item are linked through the actual macro.&amp;nbsp; Like I mentioned, I have many menu items that have the same name.&amp;nbsp; If the button name and menu name have the same macro the images are linked to both.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2022 16:32:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/syntax-for-adding-icon-to-pulldown-menu/m-p/11388265#M87725</guid>
      <dc:creator>Julio_Soto</dc:creator>
      <dc:date>2022-08-29T16:32:45Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax for adding Icon to Pulldown menu.</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/syntax-for-adding-icon-to-pulldown-menu/m-p/11389173#M87726</link>
      <description>&lt;P&gt;Do you want this ? Its old fashioned mnu using image section. You need to make slides for the images but that can be scripted etc so make 20-30 or more at a time. I did do a make mnu to save some time just writes a text file/mnu.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SeaHaven_0-1661822789863.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1109506i8E42AB061FD8E262/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SeaHaven_0-1661822789863.png" alt="SeaHaven_0-1661822789863.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Same with toolbar.mnu but it has icons which are BMP files.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can provide example code.&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>Tue, 30 Aug 2022 01:31:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/syntax-for-adding-icon-to-pulldown-menu/m-p/11389173#M87726</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2022-08-30T01:31:36Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax for adding Icon to Pulldown menu.</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/syntax-for-adding-icon-to-pulldown-menu/m-p/11389175#M87727</link>
      <description>&lt;P&gt;Sure, I'd like to give it a shot.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2022 01:32:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/syntax-for-adding-icon-to-pulldown-menu/m-p/11389175#M87727</guid>
      <dc:creator>Julio_Soto</dc:creator>
      <dc:date>2022-08-30T01:32:15Z</dc:date>
    </item>
  </channel>
</rss>

