Add menu icon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2020-02-16 10:26 PM - last edited on ‎2024-09-24 09:45 AM by Doreena Deng
How can I do this?
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2020-03-07 02:41 PM
The indexes are the problem. It is not working this way:
'STR#' ID_MENU_STRINGS_NEW "Menu strings" { /* [ ] */ "Planersoftware 2.0" /* [ 1] */ "Erstelle neues Fenster oder Tür^32101" }But this way:
'STR#' ID_MENU_STRINGS_NEW "Menu strings" { /* [ 1] */ "Planersoftware 2.0" /* [ 2] */ "Erstelle neues Fenster oder Tür^32101" }
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2020-02-16 11:18 PM
"Help^32529"
Active Thread Ltd
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2020-02-17 07:57 PM
No icon pictures show in my menu.
But the image is compiled correctly because in the RO directory appears a buttonVekaCreate&96.ico file.
This is my code:
------------------------------------
in RegisterInterface (void): err = ACAPI_Register_Menu(ID_MENU_STRINGS1, ID_STATUS_STRINGS1, MenuCode_UserDef, MenuFlag_Default);------------------------------------
in file .grc: 'STR#' ID_MENU_STRINGS1 "Menu strings" { /* [ 1] */ "WinDoPlan" /* [ 2] */ "Neues Fenster oder Tür^33000" } -------------------------------------- in file ...fix.grc: 'GICN' 33000 "buttonVekaCreate icon" { "buttonVekaCreate" }
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2020-02-17 11:15 PM
Active Thread Ltd
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2020-02-18 01:21 PM
as .png
e.g. buttonVekaCreate.png
and my command for compiling the resources is taken from the examples:
..\APIDevelopmentKit23\Tools\Win\ResConv.exe" -m r -D WINDOWS -T W -q utf8 1252 -i "RINT\$(ProjectName).grc" -D _DEBUG -o "$(OutDir)\RO\$(ProjectName).grc.rc2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2020-02-18 01:53 PM
Active Thread Ltd
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2020-02-18 03:29 PM
//nclude "DGDefs.h" /*---- This file was created by GRC compiler --------------------------------------------*/ /* */ /* Source file: RFIX\ArchicadPluginFix.grc Code table: NUL */ /* */ /*---- Version 2.0 - Windows ------------------------------ (c) 1996-2019 by GRAPHISOFT -*/ #include "MDIDs_APICD.h" 32500 MDID BEGIN 8, 0, 0L + 707017037, 0L + 4022811608 END I33000&96 ICON "buttonVekaCreate&96.ico" I33001&96 ICON "buttonVekaChange&96.ico" I33002&96 ICON "buttonVekaSettings&96.ico"-------------------------------------
so the icons are created
and I find the files in the RO folder:
buttonVekaChange&96.ico
buttonVekaCreate&96.ico
buttonVekaSettings&96.ico
what else can I check?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2020-02-21 08:53 PM
For the second level menu items the icons are working.
But not for the first level:
'STR#' DGTEST_MENU_STRINGSID "Menu strings" { /* [ ] */ "Test" /* [ ] */ "DG Functions^10000" /* [ 1] */ "Fill Settings^EL^10000" /* [ 2] */ "Library Browser^EL^10080"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2020-03-06 12:59 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2020-03-06 01:33 PM
Active Thread Ltd