home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.visual.basic      MS Visual Basic discussions, NOT dot-net      10,840 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 9,830 of 10,840   
   Kiteman - Canada to Bob Kochem   
   Re: Addressing Menu Items   
   15 Jan 06 00:49:34   
   
   From: -delete-kiteman@shaw.ca   
      
   I have a few multilingual programs (9 languages and counting...) and use the   
   following technique:   
      
   item.Caption = text   
      
   Under the Tools >>> Menu Editor, just give a name to each menu item.   
      
   You can then change the caption of the item using:   
      
   FileHeader.Caption = phrase$(97)   
   MenuExit.Caption = phrase$(101)   
      
   I use an external ANSI text file for each language and just load each line   
   into a preset phrase when the language is changed on the fly.   
      
   Hope this gets you going.   
      
   I still have not found a way to support UNICODE characters in the menu   
   items, but spanish only requires the ANSI character set so you should be   
   fine.   
      
   Regards,   
                 Tom   
      
   "Bob Kochem"  wrote in message   
   news:JKfyf.788$SD3.741@trndny07...   
   > [I apologize if this is an incredibly newbie question ...]   
   >   
   > I am looking for a way via code to access all the menu itmes on a given   
   > form. I am looking for something like the Forms or Controls collections,   
   > but for menu items. Is there such a thing or method? I would prefer to   
   > avoid using the Win API but will do so if that's the only way available.   
   >   
   > This is for a language-translation (of an existing program) where I wish   
   > to change (English to Spanish initially)  the Descriptions for all the   
   > menu items.   
   >   
   > Thanks in advance   
   > Bob K.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca