.NET
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Load toolbar images from resource file
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
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.
Re: Load toolbar images from resource file
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
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
