Re: Japanese XP themes
- From: "Norman Diamond" <ndiamond@xxxxxxxxxxxxxxxx>
- Date: Fri, 14 Jul 2006 12:32:37 +0900
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...
>>
>>
>>
.
- References:
- Re: Japanese XP themes
- From: Tom Serface
- Re: Japanese XP themes
- From: Norman Diamond
- Re: Japanese XP themes
- From: Klaatu
- Re: Japanese XP themes
- Prev by Date: Custom drawing CListCtrl problem (with picture!)
- Next by Date: Re: Custom drawing CListCtrl problem (with picture!)
- Previous by thread: Re: Japanese XP themes
- Next by thread: Numeric spin control,
- Index(es):
Relevant Pages
|