forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


ssmenu.dll and USECMDIDS

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
attreus
Valued Newbie


Joined: 30 Jul 2002
Posts: 46
Location: Berlin/Germany

PostPosted: Tue Feb 14, 2006 4:21 pm    Post subject: ssmenu.dll and USECMDIDS Reply with quote

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

  .
  .
  .

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group