.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Load toolbar images from resource file

1 REPLY 1
Reply
Message 1 of 2
pva75
468 Views, 1 Reply

Load toolbar images from resource file

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.

1 REPLY 1
Message 2 of 2
Balaji_Ram
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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost