Developer forum
cancel
Showing results for 
Search instead for 
Did you mean: 

Why is the second menu item, a sub menu

Anonymous
Not applicable
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.
1 REPLY 1

Ralph Wessel
Mentor
LesWoolsey wrote:
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".
Make a separate STR# resource for each menu:
'STR#' 32500  "First menu item" {
	/*[  ]*/	"ITI"
	/*[ 1]*/	"Import Updates^EL"
}


'STR#' 32501  "Second menu item" {
	/*[  ]*/	"ITI"
	/*[ 1]*/	"Lookup Element^EL"
}
Ralph Wessel BArch

Still looking?

Browse more topics

Back to forum

See latest solutions

Accepted solutions

Start a new discussion!