Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Shell.setImeInputMode Question
Shell.setImeInputMode Question [message #437157] Sat, 29 May 2004 15:03 Go to next message
Tommy is currently offline TommyFriend
Messages: 11
Registered: July 2009
Junior Member
Hello!

I know that I can specify some IME parameters in the
shell.setImeInputMode(SWT.DBCS);

What I need is in an English Windows environment which has installed
several IME languages (for example Japanese input) to control exactly
which language is active for a SWT text input widget.

I want to change from English language input in one text widget to
Japanese Kanji input in another text widget without the need for the
user to manually change the input language / script.

Is something like this possible with SWT?

Thanks for your efforts!

Tommy
Re: Shell.setImeInputMode Question [message #437186 is a reply to message #437157] Mon, 31 May 2004 14:47 Go to previous messageGo to next message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
Yes, change the mode when the control gets focus using
Shell.setImeInputMode().

"Tommy" <nex8@gmx.net> wrote in message news:c9a8ah$vp2$1@eclipse.org...
> Hello!
>
> I know that I can specify some IME parameters in the
> shell.setImeInputMode(SWT.DBCS);
>
> What I need is in an English Windows environment which has installed
> several IME languages (for example Japanese input) to control exactly
> which language is active for a SWT text input widget.
>
> I want to change from English language input in one text widget to
> Japanese Kanji input in another text widget without the need for the
> user to manually change the input language / script.
>
> Is something like this possible with SWT?
>
> Thanks for your efforts!
>
> Tommy
Re: Shell.setImeInputMode Question [message #437913 is a reply to message #437186] Sun, 13 June 2004 11:56 Go to previous messageGo to next message
Tommy is currently offline TommyFriend
Messages: 11
Registered: July 2009
Junior Member
I am using the new forms API and the setimeinput seems not to work.

Here´s what I am doing:

FormToolkit toolkit = new FormToolkit(topComp().getDisplay());
japaneseInput = toolkit.createText(form.getBody(), "");
japaneseInput.addFocusListener(this);

Then in the focus listener:

public void focusGained(FocusEvent evt) {
japaneseInput.getShell().setImeInputMode(SWT.DBCS);
}

This does not seem to work, even when I change to other SWT values like
SWT.ALPHA, etc.

Thanks for any ideas.

Regards,

Thomas

Steve Northover wrote:
> Yes, change the mode when the control gets focus using
> Shell.setImeInputMode().
>
> "Tommy" <nex8@gmx.net> wrote in message news:c9a8ah$vp2$1@eclipse.org...
>
>>Hello!
>>
>>I know that I can specify some IME parameters in the
>>shell.setImeInputMode(SWT.DBCS);
>>
>>What I need is in an English Windows environment which has installed
>>several IME languages (for example Japanese input) to control exactly
>>which language is active for a SWT text input widget.
>>
>>I want to change from English language input in one text widget to
>>Japanese Kanji input in another text widget without the need for the
>>user to manually change the input language / script.
>>
>>Is something like this possible with SWT?
>>
>>Thanks for your efforts!
>>
>>Tommy
>
>
>
Re: Shell.setImeInputMode Question [message #438021 is a reply to message #437913] Mon, 14 June 2004 20:04 Go to previous messageGo to next message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
Which platform? Please enter a problem report. Thanks.

"Tommy" <nex8@gmx.net> wrote in message news:cahetl$g6o$1@eclipse.org...
> I am using the new forms API and the setimeinput seems not to work.
>
> Here
Re: Shell.setImeInputMode Question [message #438025 is a reply to message #438021] Mon, 14 June 2004 21:15 Go to previous messageGo to next message
Tommy is currently offline TommyFriend
Messages: 11
Registered: July 2009
Junior Member
I tried it with Windows XP, English version and Japanese IME installed.

Should I enter a report in bugzilla?

Regards,

Thomas

Steve Northover wrote:
> Which platform? Please enter a problem report. Thanks.
>
> "Tommy" <nex8@gmx.net> wrote in message news:cahetl$g6o$1@eclipse.org...
>
>>I am using the new forms API and the setimeinput seems not to work.
>>
>>Here´s what I am doing:
>>
>>FormToolkit toolkit = new FormToolkit(topComp().getDisplay());
>>japaneseInput = toolkit.createText(form.getBody(), "");
>>japaneseInput.addFocusListener(this);
>>
>>Then in the focus listener:
>>
>>public void focusGained(FocusEvent evt) {
>> japaneseInput.getShell().setImeInputMode(SWT.DBCS);
>>}
>>
>>This does not seem to work, even when I change to other SWT values like
>>SWT.ALPHA, etc.
>>
>>Thanks for any ideas.
>>
>>Regards,
>>
>>Thomas
>>
>>Steve Northover wrote:
>>
>>>Yes, change the mode when the control gets focus using
>>>Shell.setImeInputMode().
>>>
>>>"Tommy" <nex8@gmx.net> wrote in message news:c9a8ah$vp2$1@eclipse.org...
>>>
>>>
>>>>Hello!
>>>>
>>>>I know that I can specify some IME parameters in the
>>>>shell.setImeInputMode(SWT.DBCS);
>>>>
>>>>What I need is in an English Windows environment which has installed
>>>>several IME languages (for example Japanese input) to control exactly
>>>>which language is active for a SWT text input widget.
>>>>
>>>>I want to change from English language input in one text widget to
>>>>Japanese Kanji input in another text widget without the need for the
>>>>user to manually change the input language / script.
>>>>
>>>>Is something like this possible with SWT?
>>>>
>>>>Thanks for your efforts!
>>>>
>>>>Tommy
>>>
>>>
>>>
>
>
Re: Shell.setImeInputMode Question [message #438100 is a reply to message #438025] Tue, 15 June 2004 14:59 Go to previous messageGo to next message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
Try it on a Japanese version.

"Tommy" <nex8@gmx.net> wrote in message news:cal41r$c7v$1@eclipse.org...
> I tried it with Windows XP, English version and Japanese IME installed.
>
> Should I enter a report in bugzilla?
>
> Regards,
>
> Thomas
>
> Steve Northover wrote:
> > Which platform? Please enter a problem report. Thanks.
> >
> > "Tommy" <nex8@gmx.net> wrote in message news:cahetl$g6o$1@eclipse.org...
> >
> >>I am using the new forms API and the setimeinput seems not to work.
> >>
> >>Here
Re: Shell.setImeInputMode Question [message #438210 is a reply to message #438025] Thu, 17 June 2004 15:36 Go to previous message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
Enter a bug report.

"Tommy" <nex8@gmx.net> wrote in message news:cal41r$c7v$1@eclipse.org...
> I tried it with Windows XP, English version and Japanese IME installed.
>
> Should I enter a report in bugzilla?
>
> Regards,
>
> Thomas
>
> Steve Northover wrote:
> > Which platform? Please enter a problem report. Thanks.
> >
> > "Tommy" <nex8@gmx.net> wrote in message news:cahetl$g6o$1@eclipse.org...
> >
> >>I am using the new forms API and the setimeinput seems not to work.
> >>
> >>Here
Previous Topic:Why setSelection() donŽt work?
Next Topic:swterror no more handles (again!)
Goto Forum:
  


Current Time: Tue Apr 16 14:09:43 GMT 2024

Powered by FUDForum. Page generated in 0.34229 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top