Re: Japanese XP themes

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



OK, for the common controls, I've seen conflicting statements about which controls can handle Unicode and which can't. Even if your application is compiled for a Unicode environment, if you send a string to an ANSI control, the ANSI control is still going to depend on the system's default code page for non-Unicode applications. But on rereading your latest message, this doesn't seem to be your problem because you're taking some action when you detect that the system's default code page already is Japanese.

If the application is running using Japanese, it changes the character set to SHIFTJIS_CHARSET.

It changes whose character set?

If your application is running in Unicode then your application should just continue running in Unicode. If your application is ANSI, and you've written strings in some code page, but suddenly you want to interpret those codepoints according to a different code page instead, then you should expect garbage.

The common controls ought to be OK already, those that run in Unicode should continue running in Unicode, and those that run in Shift-JIS should continue running in Shift-JIS.


"Klaatu" <Klaatu@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:4478DDE0-E0A5-43AD-BBEF-6EAF61C2D833@xxxxxxxxxxxxxxxx
Norman:

Your assumptions are somewhat accurate. However, the application does not
use the Japanese language on a non-Japanese system. We use code that detects
the system default language code. If the application is running using
Japanese, it changes the character set to SHIFTJIS_CHARSET. Otherwise, it
does nothing. On systems where the character set is not changed, the app
runs fine. On those that change the character set, we see the anomalies.
Again, I'm not sure if the manifest file is at fault becuase, it appears that
the controls that we draw using the themes api render themselves correctly.
It's only the common controls that appear to be having a problem.

Mike

--
Gort, Klaatu, Barrada Nikto...


"Norman Diamond" wrote:

I haven't used themes so I don't think I can help, but would like to see if
I understand this properly:

When you didn't use themes, your application worked correctly in Japanese
Windows XP, displaying Japanese text in the positions and sizes you wanted.

When you do use themes, your application works correctly in non-Japanese
Windows XP, displaying Japanese text in the positions and sizes you wanted.
However, your application stops working correctly in Japanese Windows XP.

There are font problems that result in behaviour equally absurd as this, but
they don't cause the display to be diagonal and they aren't related to
themes.

On your non-Japanese systems, where your application with themes displays
Japanese text correctly, did you set the Control Panel option for the
language for non-Unicode programs to be Japanese? Did you install the
Japanese MUI pack? Did you change any desktop options to match the defaults
that a Japanese system has?


"Klaatu" <Klaatu@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:E9588ED7-29AF-471D-9921-BA0BF07B79EC@xxxxxxxxxxxxxxxx
> Tom:
>
> Thanks for the reply. However, this same application worked fine on a
> Japanese Windows system prior to using a manifest for XP themes. It's > not
> a
> matter of fitting Asian characters. The control text actually displays
> diagonally in some instances, and, some common controls have been > shrunk.
> If
> you look at them in the resource editor, they look fine.
> -- > Gort, Klaatu, Barrada Nikto...
>
>
> "Tom Serface" wrote:
>
>> You are likely using a different font for Japanese that has the Asian
>> characters. That font is larger than the standard one used in most
>> dialogs.
>> I typically just resize the Japanese version of the dialogs in the RC
>> file
>> or make the original one big enough to fit the Asian characters. If >> the
>> text is garbled it likely means you are not running a Japanese Windows >> or
>> IME.
>>
>> Tom
>>
>> "Klaatu" <Klaatu@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
>> news:DA79A0A6-E2CF-47E8-9410-1714FBF89BDB@xxxxxxxxxxxxxxxx
>> >I have built an application (.Net 2005 using MFC) that embeds a >> >manifest
>> >file
>> > for XP themes support. This application runs/displays fine on
>> > non-Japanese
>> > Windows systems. On Japanese Windows, however, the text and some
>> > common
>> > controls are not rendered correctly. For example, the text is >> > garbled
>> > and
>> > some controls are not sized correctly. Does anyone have experience
>> > using
>> > XP
>> > themes on Japanese Windows? Any work arounds?
>> >
>> > Mike
>> > -- >> > Gort, Klaatu, Barrada Nikto...
>>
>>
>>



.



Relevant Pages

  • Re: Using Japanese text with Delphi
    ... on it and enter something in Japanese. ... correctly input, show, read and write Japanese characters. ... You have to go to Unicode, because then your characters will appear ... The Tnt Unicode controls are just about the only Delphi controls which can ...
    (borland.public.delphi.non-technical)
  • Re: Japanese XP themes
    ... object when changing the character set for Japanese. ... The common controls ought to be OK already, those that run in Unicode should ... your application stops working correctly in Japanese Windows XP. ...
    (microsoft.public.vc.mfc)
  • Re: UNICODE Display
    ... If I set the Font for all my controls (TextBoxes, listviews, TreeViews, etc) ... to some Japanese font, my VB controls will be able to ... listviews and textboxes cannot display the Japanese characters. ...
    (microsoft.public.vb.general.discussion)
  • Re: Japanese XP themes
    ... When you didn't use themes, your application worked correctly in Japanese Windows XP, displaying Japanese text in the positions and sizes you wanted. ... Japanese Windows system prior to using a manifest for XP themes. ... diagonally in some instances, and, some common controls have been shrunk. ...
    (microsoft.public.vc.mfc)
  • Re: Japanese XP themes
    ... use the Japanese language on a non-Japanese system. ... Japanese, it changes the character set to SHIFTJIS_CHARSET. ... It's only the common controls that appear to be having a problem. ... your application stops working correctly in Japanese Windows XP. ...
    (microsoft.public.vc.mfc)