Win32: C: Chinese language inputting improperly in text box. Extremely strange bug, please help!




Hello, I am working with a system developed several years ago, and was
recently internationalized to support unicode languages.

I am running into a very frustrating and challenging problem:

In 99% of the textboxes, entering chinese (or japanese or arabic)
characters (using windows IME), in any amount and length, will show
up and puts random characters int he textbox (sometimes '?', sometimes
a box, sometimes a different chinese char, never the correct
character). Spanish, German, etc, sho up fine.

For me to reproduce the symptom, i click inside the textbox, with IME
in chinese, type X, I, enter, enter (to pridoce the xi character, then
a second enter to return out of the ime. eveyrhting shows up properly
until the last enter, when the random garbage is produced.

To further complicate the situation, if i type the test in any other
textbox (word, excel, firefox), the characters show up fine. When i
copy those, and paste into my suspect textboxes, they show up FINE.



The peculiar part of my problem is that there are certain textboxes
that do input the chinese text properly (a home-made prompt dialog box
function). All the styles and extended styles for both the textboxes
and windows have been compared, and they are not the source of the
problem. Also, all of the windows messages bieng sent for the
controls were compared, and are identical.

The only direction I know to go in right now is that the WORKING
textbox was produced with DialogBoxIndirectParam fuction, while the
broken edit control was produced item by item, using the
CreateWindowEx function.

Any directions or insight on the problem?

Thanks in advance.

.



Relevant Pages

  • Re: Data Validation for TextBoxes
    ... that method will not prevent users from pasting in "invalid" characters. ... Private Sub TextBox1_MouseDown(ByVal Button As Integer, ... Private Sub TextBox1_KeyPress(ByVal KeyAscii As MSForms.ReturnInteger) ... Also, how can I do it for many TextBoxes, ...
    (microsoft.public.excel.programming)
  • Re: Format and Inputmask Problem
    ... L and X are valid input mask characters so they can't be part of your static ... Can you more simply set this up as 4 textboxes to gather each of the numeric ... > numerical characters from the field and the hyphens and alpha ...
    (microsoft.public.fox.programmer.exchange)
  • Re: Change textbox color based on matching value in different textbox
    ... the textboxes' background color to black. ... and so I need to exclude it from the loop) to black if the leftmost ... characters of their contents match the leftmost two characters in the ... checker textbox. ...
    (microsoft.public.access.formscoding)
  • Re: Maximum Characters per Website
    ... Hilfe & Infos rund um den ISA Server: http://www.msisafaq.de ... form I have created a website where you can fill out this form. ... of Characters in all the textboxes. ... but I can only add as many characters as I delete. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: everything after character is not displayed
    ... I have been getting strange behaviour when using ' in by textboxes. ... area type is ok ... this does not happen with other characters such as " or / ...
    (comp.lang.php)