Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Libraries and TheIDE: i18n, Unicode and Internationalization » IME window is not at correct position
IME window is not at correct position [message #7671] Sun, 14 January 2007 14:49 Go to next message
mobilehunter is currently offline  mobilehunter
Messages: 87
Registered: November 2006
Member
In case of CJK at windows xp, when we enable IME input, the OS will display IME window.
But the position is overlapped with leftmost menu. It will be positioned overlapped with 'File' menu in case of UWord.

Is there a way to properly put IME window on correct location against caret of richedit for example?

Thanks
Re: IME window is not at correct position [message #7674 is a reply to message #7671] Sun, 14 January 2007 23:01 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Sorry. Back then I once noticed there is something like IME window, but could not imagine how it works in practice Smile

Can you post some screenshot of IME in action from some application that supports it well?

Mirek
Re: IME window is not at correct position [message #7676 is a reply to message #7674] Mon, 15 January 2007 00:31 Go to previous messageGo to next message
mobilehunter is currently offline  mobilehunter
Messages: 87
Registered: November 2006
Member
index.php?t=getfile&id=433&private=0
luzr wrote on Mon, 15 January 2007 07:01

Sorry. Back then I once noticed there is something like IME window, but could not imagine how it works in practice Smile

Can you post some screenshot of IME in action from some application that supports it well?

Mirek


I captured ime for notepad in action.
The underline word still in ime window not transferred to notepad window.
Re: IME window is not at correct position [message #7678 is a reply to message #7676] Mon, 15 January 2007 08:28 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Is this what we need:

http://msdn.microsoft.com/library/default.asp?url=/library/e n-us/intl/ime_0wc7.asp

?

Mirek
Re: IME window is not at correct position [message #7679 is a reply to message #7678] Mon, 15 January 2007 09:06 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Please try this:

CtrlCore/Win32Proc.cpp

place #include "imm.h" at beginning and

    case WM_IME_COMPOSITION:
		HIMC himc = ImmGetContext(hwnd);
		if(!himc) break;
		CANDIDATEFORM cf;
		Rect r = GetScreenRect();
		cf.dwIndex = 0;
		cf.dwStyle = CFS_CANDIDATEPOS;
		cf.ptCurrentPos.x = r.left + caretx;
		cf.ptCurrentPos.y = r.top + carety + caretcy;
		ImmSetCandidateWindow(himc, &cf);
		break;


at the end of WindowProc's switch.

Report results Smile

Mirek
Re: IME window is not at correct position [message #7682 is a reply to message #7679] Mon, 15 January 2007 11:07 Go to previous messageGo to next message
mobilehunter is currently offline  mobilehunter
Messages: 87
Registered: November 2006
Member
Still no luck Smile
Re: IME window is not at correct position [message #7683 is a reply to message #7682] Mon, 15 January 2007 11:24 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Does this do ANYTHING? (no luck is too broad description Smile

Mirek
Re: IME window is not at correct position [message #7684 is a reply to message #7683] Mon, 15 January 2007 11:27 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
And can you try to debug it a little? Put some DUMPs/LOGs to get any clue about whether functions returns the right results etc?

(I would o it here, but I would need to install japanesse keyboard a learn how to use it... With my knowledge of language, it would be a little bit difficult I am afraid).

Mirek
Re: IME window is not at correct position [message #7685 is a reply to message #7683] Mon, 15 January 2007 13:18 Go to previous messageGo to next message
mobilehunter is currently offline  mobilehunter
Messages: 87
Registered: November 2006
Member
luzr wrote on Mon, 15 January 2007 19:24

Does this do ANYTHING? (no luck is too broad description Smile

Mirek

Ah sorry.
I mean the position is still overlap with 'File' menu.

Please try this file, i think it's from msdn hope not a problem distributing it here.
I got somewhere from net.
  • Attachment: imm.rar
    (Size: 32.33KB, Downloaded 447 times)
Re: IME window is not at correct position [message #7687 is a reply to message #7685] Mon, 15 January 2007 13:35 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
mobilehunter wrote on Mon, 15 January 2007 07:18

luzr wrote on Mon, 15 January 2007 19:24

Does this do ANYTHING? (no luck is too broad description Smile

Mirek

Ah sorry.
I mean the position is still overlap with 'File' menu.

Please try this file, i think it's from msdn hope not a problem distributing it here.
I got somewhere from net.


I am not sure, but this rather looks like IME implementation than usage....
Re: IME window is not at correct position [message #7688 is a reply to message #7687] Mon, 15 January 2007 14:07 Go to previous message
mobilehunter is currently offline  mobilehunter
Messages: 87
Registered: November 2006
Member
luzr wrote on Mon, 15 January 2007 21:35

mobilehunter wrote on Mon, 15 January 2007 07:18

luzr wrote on Mon, 15 January 2007 19:24

Does this do ANYTHING? (no luck is too broad description Smile

Mirek

Ah sorry.
I mean the position is still overlap with 'File' menu.

Please try this file, i think it's from msdn hope not a problem distributing it here.
I got somewhere from net.


I am not sure, but this rather looks like IME implementation than usage....


I tried to comment all source code, except those dealing with windows creation, commented IME related codes.
Then run the application, IME window is not overlapped with 'File' menu.
Previous Topic: Uim multilingual input method library
Next Topic: Internationalizing Keyboard Accelerator Keys?
Goto Forum:
  


Current Time: Thu Mar 28 17:51:58 CET 2024

Total time taken to generate the page: 0.01861 seconds