<?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: Create toolbar in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/create-toolbar/m-p/1687532#M81257</link>
    <description>Hi Rivilis,&lt;BR /&gt;
I have tried your code. It is working well. But now i have two problems , plz help me.&lt;BR /&gt;
1. I want to add a textbox in the newly created toolbar.&lt;BR /&gt;
2. I want to give shortcut keys to added buttons.(Their macros).&lt;BR /&gt;
&lt;BR /&gt;
Thanks.. In advance</description>
    <pubDate>Sun, 10 Sep 2006 12:18:29 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2006-09-10T12:18:29Z</dc:date>
    <item>
      <title>Create toolbar</title>
      <link>https://forums.autodesk.com/t5/net-forum/create-toolbar/m-p/1687524#M81249</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
I was wondering if is possible to create a toolbar with combos and other controls using .net. I don't want to create a toolpalette, I want a toolbar to do docking.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
thanks in advance for your attention,&lt;BR /&gt;
Filipe Marcelino</description>
      <pubDate>Mon, 26 Jun 2006 17:48:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/create-toolbar/m-p/1687524#M81249</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-06-26T17:48:11Z</dc:date>
    </item>
    <item>
      <title>Re: Create toolbar</title>
      <link>https://forums.autodesk.com/t5/net-forum/create-toolbar/m-p/1687525#M81250</link>
      <description>As I know you can create toolbars only with standard combos and controls (like layer). And it will be possible with help of AutoCAD ActiveX interface.</description>
      <pubDate>Mon, 26 Jun 2006 20:04:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/create-toolbar/m-p/1687525#M81250</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-06-26T20:04:06Z</dc:date>
    </item>
    <item>
      <title>Re: Create toolbar</title>
      <link>https://forums.autodesk.com/t5/net-forum/create-toolbar/m-p/1687526#M81251</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
thanks for your answer. Can you teach me how to do it? A simple sample is enough for me.&lt;BR /&gt;
&lt;BR /&gt;
Thanks in advance,&lt;BR /&gt;
Filipe Marcelino</description>
      <pubDate>Tue, 27 Jun 2006 08:45:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/create-toolbar/m-p/1687526#M81251</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-06-27T08:45:48Z</dc:date>
    </item>
    <item>
      <title>Re: Create toolbar</title>
      <link>https://forums.autodesk.com/t5/net-forum/create-toolbar/m-p/1687527#M81252</link>
      <description>[code]&lt;BR /&gt;
//  Add Reference to:&lt;BR /&gt;
//  1) AutoCAD 200X Type Library&lt;BR /&gt;
//  2) AutoCAD/ObjectDBX Common 1X.0 Type Library&lt;BR /&gt;
//  X = 6 or 7 &lt;BR /&gt;
&lt;BR /&gt;
using System ;&lt;BR /&gt;
using Autodesk.AutoCAD.Runtime ;&lt;BR /&gt;
using Autodesk.AutoCAD.ApplicationServices;&lt;BR /&gt;
using Autodesk.AutoCAD.Interop;&lt;BR /&gt;
using Autodesk.AutoCAD.Interop.Common;&lt;BR /&gt;
&lt;BR /&gt;
[assembly: CommandClass(typeof(Rivilis.ToolbarSample))]&lt;BR /&gt;
&lt;BR /&gt;
namespace Rivilis&lt;BR /&gt;
{&lt;BR /&gt;
  public class ToolbarSample&lt;BR /&gt;
  {&lt;BR /&gt;
    // Define Command "TS"&lt;BR /&gt;
    [CommandMethod("TS")]&lt;BR /&gt;
    static public void TSample()&lt;BR /&gt;
    {&lt;BR /&gt;
      try&lt;BR /&gt;
      {&lt;BR /&gt;
        IAcadApplication  app      = &lt;BR /&gt;
          (IAcadApplication) Autodesk.AutoCAD.ApplicationServices.Application.AcadApplication;&lt;BR /&gt;
        IAcadMenuGroups   groups   = app.MenuGroups;&lt;BR /&gt;
        IAcadMenuGroup    group    = groups.Item(0);&lt;BR /&gt;
        IAcadToolbars     toolbars = group.Toolbars;&lt;BR /&gt;
        // Adding new toolbar&lt;BR /&gt;
        IAcadToolbar      toolbar  = toolbars.Add("My toolbar");&lt;BR /&gt;
        // Adding button to toolbar&lt;BR /&gt;
        IAcadToolbarItem  button   = toolbar.AddToolbarButton(&lt;BR /&gt;
          0,                      // Index of button&lt;BR /&gt;
          "My button",            // Name of button&lt;BR /&gt;
          "Helpstring button",    // Helpstring of button&lt;BR /&gt;
          "\x1b\x1b_.OPTIONS\n",  // Macro command&lt;BR /&gt;
          false                   // Flyout &lt;BR /&gt;
          );&lt;BR /&gt;
        // Setting path to small and large icons&lt;BR /&gt;
        button.SetBitmaps("C:\\SmallIcon.bmp","C:\\LargeIcon.bmp");&lt;BR /&gt;
        // Center toolbar on AutoCAD Window&lt;BR /&gt;
        int x = app.WindowLeft + (app.Width  - toolbar.Width)/2, &lt;BR /&gt;
          y = app.WindowTop  + (app.Height - toolbar.Height)/2;&lt;BR /&gt;
        toolbar.Float(y,x,1);&lt;BR /&gt;
      }&lt;BR /&gt;
      catch (System.Exception e)&lt;BR /&gt;
      {&lt;BR /&gt;
      }&lt;BR /&gt;
    }&lt;BR /&gt;
  }&lt;BR /&gt;
}&lt;BR /&gt;
[/code]</description>
      <pubDate>Tue, 27 Jun 2006 13:52:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/create-toolbar/m-p/1687527#M81252</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-06-27T13:52:04Z</dc:date>
    </item>
    <item>
      <title>Re: Create toolbar</title>
      <link>https://forums.autodesk.com/t5/net-forum/create-toolbar/m-p/1687528#M81253</link>
      <description>You also have to add references to:&lt;BR /&gt;
&lt;BR /&gt;
acdbmgd.dll&lt;BR /&gt;
acmdg.dll&lt;BR /&gt;
&lt;BR /&gt;
from the AutoCAD 200X folder. Works great!&lt;BR /&gt;
&lt;BR /&gt;
Sean Campbell</description>
      <pubDate>Wed, 28 Jun 2006 19:26:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/create-toolbar/m-p/1687528#M81253</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-06-28T19:26:28Z</dc:date>
    </item>
    <item>
      <title>Re: Create toolbar</title>
      <link>https://forums.autodesk.com/t5/net-forum/create-toolbar/m-p/1687529#M81254</link>
      <description>&amp;gt; You also have to add references to:&lt;BR /&gt;
&amp;gt; acdbmgd.dll&lt;BR /&gt;
&amp;gt; acmdg.dll&lt;BR /&gt;
&amp;gt; from the AutoCAD 200X folder. Works great!&lt;BR /&gt;
Yes. But I bore in mind that this project created with AutoCAD Managed CS Project Wizard, which add this dlls as default.&lt;BR /&gt;
Best Regards,&lt;BR /&gt;
Alexander Rivilis</description>
      <pubDate>Wed, 28 Jun 2006 20:41:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/create-toolbar/m-p/1687529#M81254</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-06-28T20:41:24Z</dc:date>
    </item>
    <item>
      <title>Re: Create toolbar</title>
      <link>https://forums.autodesk.com/t5/net-forum/create-toolbar/m-p/1687530#M81255</link>
      <description>Thanks guys, for your help. I'll try to do that. Thanks very much.&lt;BR /&gt;
&lt;BR /&gt;
Regards,&lt;BR /&gt;
Filipe Marcelino</description>
      <pubDate>Fri, 30 Jun 2006 08:33:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/create-toolbar/m-p/1687530#M81255</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-06-30T08:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: Create toolbar</title>
      <link>https://forums.autodesk.com/t5/net-forum/create-toolbar/m-p/1687531#M81256</link>
      <description>Hi all,&lt;BR /&gt;
&lt;BR /&gt;
I was wondering if is possible to create a toolbar  using .net in cad 2007. create a toolbar CAD 2005 is succes but it not work in cad 2007. &lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
thanks in advance for your attention,&lt;BR /&gt;
Tran Anh Binh&lt;BR /&gt;
Ha Noi, Viet Nam</description>
      <pubDate>Mon, 10 Jul 2006 08:20:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/create-toolbar/m-p/1687531#M81256</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-07-10T08:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: Create toolbar</title>
      <link>https://forums.autodesk.com/t5/net-forum/create-toolbar/m-p/1687532#M81257</link>
      <description>Hi Rivilis,&lt;BR /&gt;
I have tried your code. It is working well. But now i have two problems , plz help me.&lt;BR /&gt;
1. I want to add a textbox in the newly created toolbar.&lt;BR /&gt;
2. I want to give shortcut keys to added buttons.(Their macros).&lt;BR /&gt;
&lt;BR /&gt;
Thanks.. In advance</description>
      <pubDate>Sun, 10 Sep 2006 12:18:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/create-toolbar/m-p/1687532#M81257</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-09-10T12:18:29Z</dc:date>
    </item>
    <item>
      <title>Re: Create toolbar</title>
      <link>https://forums.autodesk.com/t5/net-forum/create-toolbar/m-p/1687533#M81258</link>
      <description>Hi, aslam!&lt;BR /&gt;
a&amp;gt; 1. I want to add a textbox in the newly created toolbar.&lt;BR /&gt;
a&amp;gt; 2. I want to give shortcut keys to added buttons.(Their macros).&lt;BR /&gt;
&lt;BR /&gt;
As I know it is impossible.&lt;BR /&gt;
&lt;BR /&gt;
Best Regards,&lt;BR /&gt;
Alexander Rivilis.</description>
      <pubDate>Sun, 10 Sep 2006 19:50:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/create-toolbar/m-p/1687533#M81258</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-09-10T19:50:06Z</dc:date>
    </item>
    <item>
      <title>Re: Create toolbar</title>
      <link>https://forums.autodesk.com/t5/net-forum/create-toolbar/m-p/1687534#M81259</link>
      <description>Why it is impossible? Actually i have seen in autocad toolbars that they have buttons, comboboxes etc. So we can not attach a textbox. The second thing is that , if it is impossible to give shorcut key to toolbar buttons. So the another way is to give shortcut key of their macro,  what they are assign to? Isn't it?. So can you tell me how to assign shortcut keys to macros.&lt;BR /&gt;
Thanks</description>
      <pubDate>Mon, 11 Sep 2006 03:56:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/create-toolbar/m-p/1687534#M81259</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-09-11T03:56:55Z</dc:date>
    </item>
    <item>
      <title>Re: Create toolbar</title>
      <link>https://forums.autodesk.com/t5/net-forum/create-toolbar/m-p/1687535#M81260</link>
      <description>Hi, aslam!&lt;BR /&gt;
a&amp;gt; Why it is impossible?&lt;BR /&gt;
AutoCAD COM-interface allow only adding buttons and separators to toolbar.&lt;BR /&gt;
Best Regards,&lt;BR /&gt;
Alexander Rivilis.</description>
      <pubDate>Mon, 11 Sep 2006 04:56:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/create-toolbar/m-p/1687535#M81260</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-09-11T04:56:32Z</dc:date>
    </item>
    <item>
      <title>Re: Create toolbar</title>
      <link>https://forums.autodesk.com/t5/net-forum/create-toolbar/m-p/1687536#M81261</link>
      <description>Thanks for let me know.&lt;BR /&gt;
But how can i achive my goal now. I really needed a toolbar with 2 buttons and 1 textbox. and i aslo make them work with shortcut keys. Can anybody help me plz.</description>
      <pubDate>Mon, 11 Sep 2006 05:01:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/create-toolbar/m-p/1687536#M81261</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-09-11T05:01:31Z</dc:date>
    </item>
    <item>
      <title>Re: Create toolbar</title>
      <link>https://forums.autodesk.com/t5/net-forum/create-toolbar/m-p/1687537#M81262</link>
      <description>It seems you're looking for your own personal help desk! Get an&lt;BR /&gt;
ADN membership.&lt;BR /&gt;
&lt;BR /&gt;
&lt;ASLAM&gt; wrote in message news:5324205@discussion.autodesk.com...&lt;BR /&gt;
Thanks for let me know.&lt;BR /&gt;
But how can i achive my goal now. I really needed a toolbar with 2 buttons &lt;BR /&gt;
and 1 textbox. and i aslo make them work with shortcut keys. Can anybody &lt;BR /&gt;
help me plz.&lt;/ASLAM&gt;</description>
      <pubDate>Mon, 11 Sep 2006 09:41:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/create-toolbar/m-p/1687537#M81262</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-09-11T09:41:13Z</dc:date>
    </item>
    <item>
      <title>Re: Create toolbar</title>
      <link>https://forums.autodesk.com/t5/net-forum/create-toolbar/m-p/1687538#M81263</link>
      <description>It is very interestiing idea! &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;</description>
      <pubDate>Mon, 11 Sep 2006 12:44:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/create-toolbar/m-p/1687538#M81263</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-09-11T12:44:37Z</dc:date>
    </item>
    <item>
      <title>Re: Create toolbar</title>
      <link>https://forums.autodesk.com/t5/net-forum/create-toolbar/m-p/1687539#M81264</link>
      <description>brains, patients and sense of humor... &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
&lt;ALEXANDER rivilis=""&gt; wrote in message news:5324382@discussion.autodesk.com...&lt;BR /&gt;
It is very interestiing idea! &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/ALEXANDER&gt;</description>
      <pubDate>Mon, 11 Sep 2006 20:38:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/create-toolbar/m-p/1687539#M81264</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-09-11T20:38:31Z</dc:date>
    </item>
  </channel>
</rss>

