-
I've noticed when using compilers like Borland c++ that when you create an OK button, if I use it on a Japanese or chinese system the language changes.
The cancel button is the same.
the details are not kept in the program but are some sort of system call to get the regional setting for standard buttons (ok, cancel, close etc)
How would this be done in VB? a msgbox vbOK changes language fine but my buttons are just "command1.caption = "OK" and still say OK on foreign systems.
Anyone done this?
-
Take a look at the Atm.vbp sample
-
Not quite right, It's calling the info from a resource file which is how you do it most of the time but there are system specific calls for OK, Cancel & close. VC++ has them too.
If for example you run a japanese install program on your system the ok and cancel buttons appear in english and the rest is rubbish because of the double byte characters but these were not coded in by the programmer, You just set the button property to OK, not the caption.
The system handles the rest, the compiler is not secretly adding ok's and cancels for every language in the world ,
anyone heard of this?
-
Paul,
Occasionally, I found my application work very much the way you want. Inside the program I use &OK as the caption. But when executing the program in Chinese window, it changes to Chinese caption.
I can't really catch under what situation it will happen. But I 'feel' that if the &OK is specify in the attribute page, instead of from the program '.Caption =', then upon execution, it will translate.