[maemo-developers] [maemo-developers] VirtualKeyboard service/API

From: Aaron Levinson alevinsn at aracnet.com
Date: Fri Jan 20 21:24:15 EET 2006
You can use gtk_im_context_show() to force the window for a GtkIMContext
object to be displayed.  This function isn't mentioned in the
documentation for the class, but it is in the include file.  An example of
using this function can be found in the osso-xterm code.

Aaron

On Fri, 20 Jan 2006, Antonio Gomes wrote:

> otherwise, there is no way to force it Pop UP manually ?
> 
> regards
> 
> 
> On 1/20/06, Antonio Gomes <tonikitoo at gmail.com> wrote:
> >
> >
> > On 1/18/06, Aaron Levinson <alevinsn at aracnet.com> wrote:
> >
> > Hi Aaron,
> >
> > One possibility is to use gdk_window_foreign_new() to wrap the native
> > > window in a GdkWindow object.
> >
> >
> > Maybe I can jump this first step, once I already have a GtkWidget the
> > wraps mozilla guts the make easier called GtkMozEmbed, provided by the
> > mozilla embedding API. Make sense for you ?
> >
> >
> > > Then, after creating a GtkIMMulticontext,
> > > you could try using gtk_im_context_set_client_window() with the new
> > > GdkWindow object.  You'll want to listen for key-press and key-release
> > > signals (hard to do without a GtkWidget, but you should be able to
> > > handle
> > > this by listening for these signals on the HildonApp widget), and when
> > > you
> > > get these signals you can route them to the GtkIMContext that you
> > > created
> > > earlier if appropriate.  Also, look for other e-mails regarding input
> > > methods in the archives for this e-mail list.  Maybe this will work,
> > > although I'm not too hopeful.  You might also consider creating a
> > > special
> > > GtkWidget class that can wrap an arbitrary GdkWindow.  I would have
> > > suggested the GtkPlug class, but GtkPlug widgets are top-level widgets,
> > > which won't work here.
> >
> >
> >
> > Please note that the virtual keyboard is provided in the form of a GTK
> > > input method, and you'll basically need to use the standard GTK
> > > mechanisms
> > > for working with input methods if you want to use it.
> >
> >
> > but I'm already using Vb successfully and there is no synchronising
> > between the rendered HTML forms and the Kb ... (focus in -> pop up vk /
> > focus out -> vk gets down).
> >
> > many thanks
> >
> >
> > > > Hi there,
> > > >
> > > > I'm wondering how I can get the Virtual Keyboard service to
> > > synchronize with
> > > > non GTK_Widgets (like HTML forms on mozilla-webpages) ?
> > > >
> > > > Actually, I have some methods already implemented regarding this, and
> > > I just
> > > > need communication with VK side (from APIs or whatever). Is there is
> > > any API
> > > > to use it, or GTK mask/hide it in its guts ?
> > >
> > >
> 


More information about the maemo-developers mailing list