attreus Valued Newbie

Joined: 30 Jul 2002 Posts: 46 Location: Berlin/Germany
|
Posted: Tue Feb 14, 2006 4:21 pm Post subject: ssmenu.dll and USECMDIDS |
|
|
hi,
i'm trying to make a multilanguage app and the problem is the different menu-events generated. i thought it should be a great idea to use
"menu option,USECMDIDS,1"
for the ssmenu.dll to solve this, but some times the menus have different ids and some times the normal <Caption>MENU-events are generated. is there something i forgot or does anyone know this problem, or has another idea?
thanks in advance
attreus
------------------------
addition:
found out that when running the script within the vds-ide the id of every menuitem is increased by one.
so if the label is 17MENU it isn't found as the event is 18MENU and if there's a hyphen bitween the items there is no label 18MENU or it would jump to the wrong label.
the compiled script currently works but i can't trust it if it's buggy in this way. strange, isn't it?
| Code: |
.
.
.
menu class,%%winclass
menu option,USECMDIDS,1
%%menuBar = @menu(menubarid)
%%FileMenu = @menu(getsubmenu,%%menubar,0)
%%EditMenu = @menu(getsubmenu,%%menubar,1)
%%FindMenu = @menu(getsubmenu,%%menubar,2)
%%InfoMenu = @menu(getsubmenu,%%menubar,7)
%%newMenu = @menu(hidemenu,%%menuBar,8)
%%TabMenu = @menu(hidemenu,%%menuBar,8)
menu insertmenu,%%FileMenu,%%newMenu,0,&@lng(new_file)
if %%wordWrap
menu check,%%optionsmenu,0
end
.
.
.
|
|
|