Results 1 to 4 of 4

Thread: "OK" button that changes with language

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2000
    Location
    Japan
    Posts
    840

    Question

    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?
    Paul Dwyer
    Network Engineer
    Aussie In Tokyo

    Using Powerbasic 6 & VB6 SP4 (Please also add your VB Version to your signature!)

  2. #2
    Frenzied Member Mark Sreeves's Avatar
    Join Date
    Nov 1999
    Location
    UK
    Posts
    1,845
    Take a look at the Atm.vbp sample

    Mark
    -------------------

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2000
    Location
    Japan
    Posts
    840
    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 Dwyer
    Network Engineer
    Aussie In Tokyo

    Using Powerbasic 6 & VB6 SP4 (Please also add your VB Version to your signature!)

  4. #4
    Hyperactive Member
    Join Date
    Jun 1999
    Location
    Taipei
    Posts
    318
    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.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width