WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Dialog Editor version 6.2
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Localize Dialog Caption

 Keywords: Foreign Japanese Localize Dialog Caption Title

Question:

I need to localize my WinBatch 2008C form for Japanese-speaking clients. My Variable Text control and my Push Button controls have been localized successfully but I cannot figure out to display Japanese text in my form caption.

The code below displays "????" in the caption.

strCaption = ChrHexToUnicode("AD30E330F330BB30EB30") ; Japanese text
MyDialogFormat=`WWWDLGED,6.1`
MyDialogCaption='%strCaption%'
MyDialogFont=`@Arial Unicode MS|5632|40|34`
Changing the dialog title in a User-Defined-Callback procedure (see sample code below) did not help.

DialogProcOptions(dia_hndDialog,1003,"%strCaption%")

What am I doing wrong?

Answer:

Looks like another case of misuse of variable substitution. There is no reason to use it in the examples you provided. All it does is cause the Unicode text to be converted to an ANSI character set before being assigned to the MyDialogCaption variable.

The font specified in MyDialogFont is only used as the default font for dialog controls. It does not affect the font used in the dialog caption. The system font is always used for dialog captions. For some reason your system does not know how to display Japanese glyphs using the system font or one of its fall-backs so you see square boxes instead.


Article ID:   W17725
Filename:   Localize Dialog Caption.txt
File Created: 2009:01:21:11:29:04
Last Updated: 2009:01:21:11:29:04