Re: how can I know cursor in an editable field?
marslee_suc wrote: I am working on an onscreen keyboard, I want it can call itself when end-user click an editable field such as editline or text field when focus leave editable field keyboard can hide itself. what should I do, I think X can know If user enter an editable field, but I don't how to deal with it. X itself knows nothing about widgets or fields. These are constructed by the toolkit (GTK etc). Also, with lightweight toolkits (which, IIRC, includes the latest version of Qt), X doesn't even have any clues about how a window is divided up, let alone definite information. Realistically, you are going to need to handle each toolkit separately, possibly even modifying the toolkit. -- Glynn Clements gl...@gclements.plus.com ___ xorg mailing list xorg@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/xorg
Re: how can I know cursor in an editable field?
Le 12/03/2009 17:01, marslee_suc a ??crit : Hi all, I am working on an onscreen keyboard, I want it can call itself when end-user click an editable field such as editline or text field when focus leave editable field keyboard can hide itself. what should I do, I think X can know If user enter an editable field, but I don't how to deal with it. Is there any application used same technique? Is there any example? You'll have to use accessibility toolkits such as at-spi to get this sort of information. As Glynn said, X has no idea what is being drawn inside windows (X almost only knows about pixels, graphics-wise). You should take a look at projects such as Orca (a screen-reader) and Accerciser (an a11y explorer). Hope that helps. R??mi ___ xorg mailing list xorg@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/xorg