minwin unicode
Bill Baxter
wbaxter at gmail.com
Sun Dec 3 11:46:50 PST 2006
Tomas Lindquist Olsen wrote:
> Bill Baxter wrote:
>
>
>>Tomas Lindquist Olsen wrote:
>>
>>>Walter Bright wrote:
>>>
>>>
>>>
>>>>Chris Miller wrote:
>>>>
>>>>
>>>>>>Do you care about Win95? If so then I recall there are some
>>>>>>limitations to using unicode there, and you need something
>>>>>>called unicows.dll to make it work at all. I think unicows
>>>>>>only supports a subset of the win32 api.
>>>>>>
>>>>>>Personally I don't care about Win95, but apparently a lot of
>>>>>>people still do.
>>>>>>
>>>>>>If you don't care about Win95, then I believe you're right
>>>>>>that the -W functions are the way to go.
>>>>>
>>>>>It also applies to Windows 95 and ME, which I believe still
>>>>>have a chunk of users. MSLU is an option but is a dependency.
>>>>
>>>>Don't use MSLU to support 95 and ME. Look into how std.file does
>>>>it, that's the right way for D.
>>>
>>>
>>>I have committed the Unicode update for Windows to SVN :)
>>>Thanx again for pointing out how it should be done!
>>>
>>
>>And I can confirm that Japanese works now! Yea!
>> (though without in-place IME support, but that's a separate kettle o
>>fish)
>>
>>--bb
>
>
> I have never heard of that IME.
> Danish works fine.
> If you know something that I can do to fix this please let me know!
>
> And thanx for testing :)
After some experimentation, it looks like you need to use the RichEdit
text control (2.0 or greater) to be able to do inline IME conversion.
The annoying thing about that is apparently you have to load the
RichEdit dll yourself. See what wxWidgets does here:
http://cvs.wxwidgets.org/viewcvs.cgi/wxWidgets/src/msw/textctrl.cpp?rev=1.279&content-type=text/vnd.viewcvs-markup
General info about MSW rich edit controls:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/commctls/richedit/richeditcontrols/aboutricheditcontrols.asp
My feeling is that if MinWin is only going to offer one flavor of text
control, it would be best for it to use the RichText control since it
has all-around more functionality.
On the other hand I notice that even on Japanese Windows things like the
Win+R run dialog use the plain "Edit" control and do not have in-place
IME support. Perhaps the best idea would be to use the simple "Edit"
control for one-line text and the RichEdit control for multi-line text.
--bb
More information about the Digitalmars-d-announce
mailing list