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,833 of 10,840   
   Bob Kochem to Kiteman - Canada   
   Re: Addressing Menu Items   
   15 Jan 06 03:05:43   
   
   From: info@minuteman-systems.com   
      
   Thanks to all who have replied here.   
      
   I think this gets me off and running.   
      
   I am assuming I can use a similar approach to rename all labels and other   
   named items on forms.   
      
   Can anyone point at a good tutorial on making programs support multiple   
   languages? I would like to avoid re-inventing the wheel if possible.   
      
   One more thing I am wrestling with is all the message boxes that are posted   
   in the program. The program's been around quite a while and now makes use of   
   the MsgBox in a couple hundred places. I am thinking of creating a "meta"   
   message box function, something like TransMsgBox, doing a global replace of   
   "MsgBox"  with "TransMsgBox" and then having the TransMsgBox function do the   
   translation (somehow) for every set of arguments passed to it.   
      
   Thanks,   
      
   Bob   
      
      
   "Kiteman - Canada" <-delete-kiteman@shaw.ca> wrote in message   
   news:y_gyf.343436$ki.139988@pd7tw2no...   
   >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