How I can show a window when focus in an editable field

2 messages Options
Embed this post
Permalink
marslee_suc

How I can show a window when focus in an editable field

Reply Threaded More More options
Print post
Permalink
Hi all,

 

I am developing an onscreen keyboard. I plan to make keyboard can show itself when end-user click editable field such as edit line, but I don’t know how to do that. I think in SCIM there has similar function. I download source code of SCIM, but I am a layman about input method ,which part of scim should I research? in which file or which function implement the requirement. 

 

Thank you in advance.


 



网易邮箱,中国第一大电子邮件服务商

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Scim-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/scim-devel
Liu, Raymond

Re: How I can show a window when focus in an editable field

Reply Threaded More More options
Print post
Permalink
Hi marslee

>I am developing an onscreen keyboard. I plan to make keyboard can show >itself when end-user click editable field such as edit line, but I don't >know how to do that. I think in SCIM there has similar function. I >download source code of SCIM, but I am a layman about input method ,which >part of scim should I research? in which file or which function implement >the requirement. 

Actually, I think this is more about IMContext. Say you are working with GTK, Then GtkIMContext will call focus_in function of the IMContext. What you need to do is to implement your IMContext module for GTK and do the magic thing in the focus_in function, if your onscreen keyboard is an standalone app and not part of the existing Input Method.

And I guess you can read the GtkIMContext API and some simple sample code to gain more knowledge into this. For example the imcontext related code in matchbox-keyboard.

Raymond

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Scim-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/scim-devel