2009-01-07 01:01 PM - last edited on 2023-08-04 04:35 PM by Doreena Deng
2009-01-14 02:18 PM
Matti wrote:You can see the answer in the documentation for Structure of an Add-on/Required Resources:
Addon menu is registered in RegisterInterface function:
ACAPI_Register_Menu (32501, 0, MenuCode_UserDef, MenuFlag_Default);
How to add custom icon to the addon menu item?
'STR#' 32500 "Menu strings" { /* [ 1] */ "Database Tracker" /* [ 2] */ "Enable red walls^32601" /* [ 3] */ "-" /* [ 4] */ "Enable column links" /* [ 5] */ "List links (selection)^S" /* [ 6] */ "List links (database)" /* [ 7] */ "-" /* [ 8] */ "List walls with assignments" }To quote:
API wrote:
You can see that the name of the first command ends with the string "^32601". This extension instructs ArchiCAD to assign a custom picture to the given menu item. The picture itself must be a bitmap resource ('GBMP') with the resource ID following the ^ character.
2009-01-15 12:12 PM
2009-01-19 08:33 AM
2009-01-19 06:20 PM
'GICN' 32411 "Section Link" { "SectionLink" 0 128 128 }This says that the icon resource number 32411 will be named "Section Link" and comes from a graphics file SectionLink.* with an RGB transparency color of (0,128,128).
2009-01-20 09:01 AM
The picture itself must be a bitmap resource ('GBMP') with the resource ID following the ^ character.
2009-02-05 05:02 PM
Matti wrote:The transparent section should have RGB = (192,192,192), and it should be a GBMP.
I have used GICN in button icons and the transparency works as you explained. But in the menu items I cannot use 'GICN'. I'm trying to get transparency to 'GBMP'.