ime

How to avoid the “Open IME” popup in a StringGrid?

和自甴很熟 提交于 2019-12-22 09:08:03
问题 In a StringGrid, sometimes I get the unwanted menu below when I right-click. Is this a Windows popup? How to I prevent this popup from appearing rather than my own? I have goAlwaysShowEditor in my Options. I have set StringGrid.PopupMenu to my popup. I've set StringGrid.OnMouseDown to show my popup if it's a right click. 回答1: You can override the virtual CreateEditor method like this way (not a good solution though, I know :-): type TStringGrid = class(Grids.TStringGrid) protected function

What is the correct, modern way to handle arbitrary text input in a custom control on Windows? WM_CHAR? IMM? TSF?

青春壹個敷衍的年華 提交于 2019-12-21 05:18:28
问题 I want to be able to support text input in a custom Windows control, just like the EDIT and rich edit controls already do, but not subclassing either of those. The control currently uses Direct2D and DirectWrite to draw text, and runs on Windows Vista SP1 with Platform Update or newer (I might change it to Windows 7 SP1 with Platform Update or newer if I decide I need newer Direct2D and DirectWrite features, assuming those are available there or on Windows 8 only, but that's a different

How do I enable the Japanese keyboard on the iPhone simulator?

风格不统一 提交于 2019-12-20 02:36:26
问题 I have a UITableview with a UISearchBar, which contain Japanese words, and I want to test if it works to search Japanese words with Japanese keyboard. I can't find how to change the default keyboard on iPhone simulator. 回答1: Open on simulator Settings application ->General->International->Language . Select here your language and keyboard will have required letters. 回答2: I think what we really want to do is add an international keyboard, not change the language of the simulator. Open Simulator

Android - Unsupported Service: audio

落爺英雄遲暮 提交于 2019-12-18 19:04:04
问题 I am trying to understand and resolve and error I am seeing in the Eclipse workspace log while working on an Android app that implements an IME. I am new to Android and Eclipse. The error is "com.utterkaos.keyboard.LatinKeyboardView failed to instantiate." The associated stack trace is: java.lang.UnsupportedOperationException: Unsupported Service: audio at com.android.layoutlib.bridge.android.BridgeContext.getSystemService(BridgeContext.java:434) at android.inputmethodservice.KeyboardView.

View-specific IME?

时间秒杀一切 提交于 2019-12-18 07:03:06
问题 I have a custom view for which I want the user to be able to enter characters from an app-defined set of characters. To do this, as I understand it, I need to write an input method service. The user not only needs to install it, but then needs to enable the IME in the Settings > Language & keyboard, and then select the custom IME for use in the view. This seems really crazy. I want this IME to be used for just one view in one application. I don't want it to be available system-wide or force

View-specific IME?

痞子三分冷 提交于 2019-12-18 07:02:16
问题 I have a custom view for which I want the user to be able to enter characters from an app-defined set of characters. To do this, as I understand it, I need to write an input method service. The user not only needs to install it, but then needs to enable the IME in the Settings > Language & keyboard, and then select the custom IME for use in the view. This seems really crazy. I want this IME to be used for just one view in one application. I don't want it to be available system-wide or force

Retain soft-input/IME state on Orientation change

时间秒杀一切 提交于 2019-12-12 11:14:01
问题 I'm having a small user experience issue in my app; When changing from landscape to portrait (or portrait to landscape) with the Soft Keyboard open, the keyboard hides. What I want to do is to stop the keyboard hiding on orientation change. ( Edit - I don't want to force the keyboard open, if the keyboard was hidden before the orientation change, I want it to stay hidden - I want to retain the keyboards open/closed state). I've looked around for an answer and it seems adding stateUnchanged to

Set EditText to be Multiline(Enter is carrige return) and not display suggestions

[亡魂溺海] 提交于 2019-12-12 06:52:39
问题 I am trying to set a Android EditText to be Multiline, and not display any suggestions. textView.setInputType(InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS | InputType.TYPE_TEXT_FLAG_IME_MULTI_LINE); However, this is just a single line. Currently pressing the enter/carriage return button hides the keyboard, instead of moving to a new line. textView.setImeOptions(EditorInfo.IME_FLAG_NO_ENTER_ACTION); Setting the IME flag causes the enter button to insert whitespace. I need to display no suggestions

Whether we can get WM_IME_* messages when we’re typing in WPF TextBox with IME?

谁都会走 提交于 2019-12-11 13:06:58
问题 First, thanks for reading this thread and provide your suggestion. Here’s the detailed description of my question: Due to large scale of legacy code, we need to use Win32 messages. And for UI part, we need to use WPF to modernize our appearance. That part of UI need to direct keyboard messages into the old legacy component. For input messages without IME, we have used ComponentDispatcher.ThreadFilterMessage to get these messages like WM_KEYDOWN, WM_CHAR, ect. But for IME input, we can’t get

C# - Automatically switch between two different IME in the same keyboard layout

自古美人都是妖i 提交于 2019-12-11 03:28:13
问题 I did an application to enter chinese pinyin and hanzi in a database. That means that the operator have to switch constantly between "Pinyinput" and "sogou input" with ctrl+shift There is a way to make the IME change automaticall when a textbox is selected? I mean, not switch the keyboard layout, just the input method of the same keyboard layout 回答1: try this, I'm not sure about the name of the languages, try to debug it and get the right name if it didn't work. public void ToPinyinput() {