We value your input! Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey
2013-09-02 02:31 PM - last edited on 2023-08-01 07:00 PM by Doreena Deng
2013-09-02 03:54 PM
'GBMP' <ICON_ID> "Menu Icon" { "<BMP_FILE_NAME_WITHOUT_EXTENSION>" }
'STR#' <MENU_ID> "Menu strings" { /* [ ] */ "My menu" /* [ 1] */ "Menu item with icon^<ICON_ID>" }
2013-09-02 04:08 PM
2013-09-03 05:11 PM
You can use bmp file format.There are so many bmp formats in this world...
Place your bmp images into an Images folder somewhere near the resources. (images should be in RFIX/Images)near resources? What resources? Images SHOULD be in RFIX/Images? Why the should be? Because of compileGRCs.pl from examples? Cause of -p path parameter of ResConv? Please, be more specific, or people will waste so much time guessing the proper settings... just like me
Place icon definition into your grc file:
Code:
'GBMP' <ICON_ID> "Menu Icon" { "<BMP_FILE_NAME_WITHOUT_EXTENSION>" }Where in grc file? Before the use of ^ in menu strings? in FIX or INT? Just so vague like in documentation.
In your XCode project modify the custom build command of the grc, write the following option after the ResConv.exe command:I dont think I want to run ResConv.exe on Mac...
Code:-p <IMAGES_FOLDER>(in our case: -p "RFIX\Images")
Add the defined icon to the menu item in your grc file:Yeah, so simple.. but what if the icon is broken (something else is displayed)? Where is answer to this? You just cant rely that always will be fine with one little given example. in API Examples there isnt any menu icon demonstration...
I don't think that this is so ugly, so you shouldn't hate this API.Let me give you an example of nice API and ArchiCAD API and compare it
2013-09-04 09:24 AM