Pocket_pc_py

所属分类:输入法编程
开发工具:PowerBuilder
文件大小:75KB
下载次数:47
上传日期:2006-12-10 14:04:21
上 传 者OldFisher
说明:  用于Pocket PC 上的拼音输入法,来自驱动开发网
(for Pocket PC on the Pinyin input method, from the opening drive Portal)

文件列表:
dvorak_classfactory.h (1344, 2003-02-21)
dvorak_implementation.cpp (20931, 2003-02-21)
dvorak_implementation.h (4837, 2003-02-21)
dvoraksip.aps (43564, 2006-05-30)
dvoraksip.cpp (5826, 2003-02-21)
dvoraksip.def (218, 2003-02-21)
dvoraksip.h (15970, 2005-06-06)
dvoraksip.idl (2511, 2003-02-21)
dvoraksip.rc (2320, 2003-02-21)
dvoraksip.tlb (5636, 2005-06-06)
dvoraksip.vcb (99328, 2006-05-30)
dvoraksip.vcl (1303, 2005-06-06)
dvoraksip.vco (56832, 2006-05-30)
dvoraksip.vcp (41568, 2006-05-30)
dvoraksip.vcw (546, 2003-02-21)
dvoraksip_i.c (4272, 2005-06-06)
dvoraksipps.def (279, 2003-02-21)
macros.h (1837, 2003-02-21)
resource.h (775, 2003-02-21)
resrc1.h (501, 2003-02-21)
sip_api.idl (1218, 2003-02-21)
StdAfx.cpp (315, 2003-02-21)
StdAfx.h (1061, 2003-02-21)
py\py.vcc (302, 2006-05-30)
py\py.cpp (1707, 2006-05-30)
py\py.h (1218, 2006-05-30)
py\py.def (176, 2006-05-30)
py\StdAfx.h (1231, 2006-05-30)
py\StdAfx.cpp (200, 2006-05-30)
py\Resource.h (411, 2006-05-30)
py\py.rc (3028, 2006-05-30)
py\py.vcp (11369, 2006-05-30)
py\py.vcw (534, 2006-05-30)
py\py.vcb (41984, 2006-05-30)
py\RCa01312 (6184, 2006-05-30)
py\RCb01312 (6184, 2006-05-30)
py\py.vcl (1995, 2006-05-30)
py\py.vco (54784, 2006-05-30)
... ...

DvorakSIP readme ================= The soft input panel (SIP) was designed to support user-defined input mechanisms. By default, it includes a standard keyboard, a block recognizer, and letter recognizer. This sample will demonstrate how a third party can create a custom input panel as a COM object. This example is intended to help users and service providers in foreign countries support different languages using SIP. The Dvorak keyboard sample should be a COM component that implements the IInputMethod interface. A description of the interface can be found in the Pocket PC documentation. There is an attached code example that illustrates this process for a standard keyboard. The following events occur when the user selects this input panel and begins tapping keys. 1. The system calls the dll containing the code for the custom SIP mechanism, which implements the IInputMethod interface. 2. The Select method is called to create the input window using the Dvorak keyboard bitmap. 3. The system calls GetInfo to get information in an IMINFO structure about the size and other aspects of the input context. 4. The system calls ReceiveSipInfo to inform the input method of size, placement information. It should react to this call by resizing itself appropriately. 5. Finally, RegisterCallback is called to give the input method a pointer to a IMCallBack interface. This interface is used to return keystrokes to applications. 6. When the user taps a key on the keyboard, the input method recognizes the mouse event location on its keyboard bitmap. It scans the bitmap horizontally and vertically to place the tap inside a particular key. 7. A large array on constants is maintained defining the value of each key on the keyboard and its pixel location so this scanning mechanism can be accomplished. 8. The keystroke is processed and various flags are checked such as CAPS lock, shift, etc. Once the proper keystroke has been determined, it is returned to the application using the IICallBack:SendCharEvents method. IICallBack: SendVirtualKey is used if the virtual key code is desired (an example could be when the windows key was pressed if such a key exists on the keyboard). Virtual key codes are defined in Windows CE help. 9. The state of the keyboard is updated as the key is no longer pressed. Code must be careful to check for sticky keys such as CAPS in this situation. The interface that must be implemented is: Note that GetImdata, SetImData, UserOpionsDlg can simply return an HRESULT without any computation. UserOptionsDlg can display the simple message "There are no options for this input method." This is just to show the function of method so a user can extend it further. This interface is implemented by the input method (IM) component. The input panel calls the methods of this interface to notify the IM of state changes and to request action and information from the IM. Refer to the SDK documentation for the IInputMethod interface for more information on the methods that must be implemented to create a custom SIP. Installation ------------- 1. In eVC++ 3.0, select Tools-Options. 2. On the Download tab of the Options dialog, ensure the "Always download binary to the target" option is checked. 3. Build the DLL. When the build is complete, it will automatically be downloaded and registered on the device or emulator. 4. Select the Dvorak SIP using the SIP button in the lower right of the screen from within any application that support the SIP. (Pocket Word, Notes, etc.) This sample works on either the Pocket PC Emulator or real device.

近期下载者

相关文件


收藏者