Microsoft KB Archive/172346: Difference between revisions
(importing KB archive) |
m (Text replacement - """ to """) |
||
Line 86: | Line 86: | ||
== MORE INFORMATION == | == MORE INFORMATION == | ||
The IME box allows the user to input Double Byte Character Set (DBCS) characters into a character field. You can enable and disable the IME box automatically by selecting Tools and Options from the main menu and then selecting the | The IME box allows the user to input Double Byte Character Set (DBCS) characters into a character field. You can enable and disable the IME box automatically by selecting Tools and Options from the main menu and then selecting the "Browse IME Control" check box located on the General tab. Once the "Browse IME Control" is checked, the IME box is automatically enabled as you move into a character field in a grid. | ||
=== Steps to Reproduce Behavior === | === Steps to Reproduce Behavior === | ||
<ol> | <ol> | ||
<li>Make sure the Browse IME Control check box is selected by selecting Options from the Tools menu, and then clicking the General tab.</li> | <li>Make sure the Browse IME Control check box is selected by selecting Options from the Tools menu, and then clicking the General tab.</li> | ||
<li>Create a project named | <li>Create a project named "imeproj."</li> | ||
<li>Create a form named | <li>Create a form named "imeform."</li> | ||
<li>Add a table (for example, customer) to the DataEnvironment of the form, and drag the table to the form to create a grid.</li> | <li>Add a table (for example, customer) to the DataEnvironment of the form, and drag the table to the form to create a grid.</li> | ||
<li>Go into each individual text box and set the IMEMode property to | <li>Go into each individual text box and set the IMEMode property to "2 - Close IME."</li> | ||
<li><p>Add a command button to the form and put the following code in the Click event: <span class="kbd userinput"> </span></p> | <li><p>Add a command button to the form and put the following code in the Click event: <span class="kbd userinput"> </span></p> | ||
<pre class="codesample"> RELEASE Thisform | <pre class="codesample"> RELEASE Thisform | ||
CLEAR EVENTS | CLEAR EVENTS | ||
</pre></li> | </pre></li> | ||
<li><p>Create a main program name | <li><p>Create a main program name "imemain," with the following code: <span class="kbd userinput"> </span></p> | ||
<pre class="codesample"> DO FORM imeform | <pre class="codesample"> DO FORM imeform | ||
READ EVENTS | READ EVENTS | ||
Line 106: | Line 106: | ||
<li>Create and run the executable file.</li></ol> | <li>Create and run the executable file.</li></ol> | ||
NOTE: The IME box still appears even though the IMEMode property is already set to | NOTE: The IME box still appears even though the IMEMode property is already set to "2 - Close IME."<br /> | ||
<br /> | <br /> | ||
NOTE: The IME box only works on operating system platforms that support DBCS, such as Microsoft Windows 95 Traditional Chinese version. | NOTE: The IME box only works on operating system platforms that support DBCS, such as Microsoft Windows 95 Traditional Chinese version. |
Latest revision as of 10:05, 21 July 2020
Article ID: 172346
Article Last Modified on 8/14/1999
APPLIES TO
- Microsoft Visual FoxPro 5.0 Standard Edition
- Microsoft Visual FoxPro 5.0a
This article was previously published under Q172346
SYMPTOMS
In Visual FoxPro 5.x, the Input Method Editor (IME) box can be disabled in the development environment but cannot be disabled at runtime in an executable (.exe) file.
CAUSE
When a text box is in a grid, the grid code overwrites the text box object's IMEMode property and causes this behavior.
RESOLUTION
Two workarounds exist for this problem. First, place the following code in the GotFocus event of each individual text box in a grid to reset the IMEMode property:
This.IMEMode = 2
Second, you can create a text box class that has the above code in the GotFocus event, and subclass all the text box objects in the grid from the text box class.
Setting the IMEMode property in the Properties window for each individual text box does not work.
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This bug has been fixed in Visual Studio 97 Service Pack 3.
For more information, please see the following article in the Microsoft Knowledge Base:
170365 INFO: Visual Studio 97 Service Packs - What, Where, and Why
MORE INFORMATION
The IME box allows the user to input Double Byte Character Set (DBCS) characters into a character field. You can enable and disable the IME box automatically by selecting Tools and Options from the main menu and then selecting the "Browse IME Control" check box located on the General tab. Once the "Browse IME Control" is checked, the IME box is automatically enabled as you move into a character field in a grid.
Steps to Reproduce Behavior
- Make sure the Browse IME Control check box is selected by selecting Options from the Tools menu, and then clicking the General tab.
- Create a project named "imeproj."
- Create a form named "imeform."
- Add a table (for example, customer) to the DataEnvironment of the form, and drag the table to the form to create a grid.
- Go into each individual text box and set the IMEMode property to "2 - Close IME."
Add a command button to the form and put the following code in the Click event:
RELEASE Thisform CLEAR EVENTS
Create a main program name "imemain," with the following code:
DO FORM imeform READ EVENTS
Mark this program file as the main file in the project.
- Create and run the executable file.
NOTE: The IME box still appears even though the IMEMode property is already set to "2 - Close IME."
NOTE: The IME box only works on operating system platforms that support DBCS, such as Microsoft Windows 95 Traditional Chinese version.
Additional query words: IME DBCS
Keywords: kbbug kbfix kbvs97sp2fix KB172346