Why is the second menu item, a sub menu
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2013-04-23
09:00 PM
- last edited on
2023-08-02
02:43 PM
by
Doreena Deng
2013-04-23
09:00 PM
I don't understand what causes a string to be a sub menu rather than a menu item. My resource looks like:
'STR#' 32500 "Menu strings" {
/* [ ] */ "ITI"
/* [ 1] */ "Import Updates^EL"
/* [ 2] */ "Lookup Element^EL"
}
When I load this menu with:
err = ACAPI_Register_Menu (32500, 32520, MenuCode_UserDef, MenuFlag_Default);
I get a new menu on the menubar called "ITI", a submenu called "Import Updates^EL" and a menu item on the sub menu called :Lookup Element". What I want is "Import Updates" and "Lookup Element" to be menu items under the ITI menu.
The documentation doesn't sya anything about how to do this, although it sort-of implies that indentation of the strings is the key. But that can't be right because mine are all indented the same.
'STR#' 32500 "Menu strings" {
/* [ ] */ "ITI"
/* [ 1] */ "Import Updates^EL"
/* [ 2] */ "Lookup Element^EL"
}
When I load this menu with:
err = ACAPI_Register_Menu (32500, 32520, MenuCode_UserDef, MenuFlag_Default);
I get a new menu on the menubar called "ITI", a submenu called "Import Updates^EL" and a menu item on the sub menu called :Lookup Element". What I want is "Import Updates" and "Lookup Element" to be menu items under the ITI menu.
The documentation doesn't sya anything about how to do this, although it sort-of implies that indentation of the strings is the key. But that can't be right because mine are all indented the same.
Labels:
- Labels:
-
Add-On (C++)
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2013-04-24 12:10 AM
2013-04-24
12:10 AM
LesWoolsey wrote:Make a separate STR# resource for each menu:
My resource looks like:
'STR#' 32500 "Menu strings" {
/* [ ] */ "ITI"
/* [ 1] */ "Import Updates^EL"
/* [ 2] */ "Lookup Element^EL"
}
I get a new menu on the menubar called "ITI", a submenu called "Import Updates^EL" and a menu item on the sub menu called :Lookup Element".
'STR#' 32500 "First menu item" { /*[ ]*/ "ITI" /*[ 1]*/ "Import Updates^EL" } 'STR#' 32501 "Second menu item" { /*[ ]*/ "ITI" /*[ 1]*/ "Lookup Element^EL" }
Ralph Wessel BArch
Central Innovation
Central Innovation