• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    .NET

    Reply
    Active Contributor
    Posts: 48
    Registered: ‎07-22-2012

    Load toolbar images from resource file

    125 Views, 1 Replies
    10-28-2012 10:25 AM

    Is it possible to load toolbar images from resource file instad file from disk?

     

    Now I did:

     

                AcadToolbar tb = mainGroup.Toolbars.Add("MyToolbar");
                tb.Visible = true;
                tb.Dock(AcToolbarDockStatus.acToolbarDockTop);
                AcadToolbarItem i1 = tb.AddToolbarButton(1, "Test", "TestButton", "\x1b\x1bTESTCMD ");
                i1.SetBitmaps(@"D:\Icons\BMP\test.bmp", @"D:\Icons\BMP\test.bmp");

     

    I can't say that it's very useful. Is it possoble to load images from my plug-in DLL (resource file)?

     

    Pavel.

    Please use plain text.
    ADN Support Specialist
    Balaji_Ram
    Posts: 359
    Registered: ‎03-21-2011

    Re: Load toolbar images from resource file

    10-30-2012 10:01 AM in reply to: pva75

    Hi Pavel,

     

    I dont think it is possible to do this using the COM API, but this can be done using the CUI API.

     

    I have attached a document and sample projects from a Devnote which is yet to be migrated to a Devblog post.

     

    Hope it helps.

     



    Balaji
    Developer Technical Services
    Autodesk Developer Network

    Please use plain text.