Would the following work?
Is it really that simple? ;-)
Regards,
Dov
- Create a keyboard widget with GtkButtons representing the "normal" keys and GtkToggleButtons for Shift, Control, Alt, etc.
- Overwrite the button-press-event of each GtkButton to prevent button press events with from stealing the keyboard focus.
- In the clicked event of the keyboard buttons, look up the current focused widget, and send it a (synthetic) key-press-event of the configuration of the current key plus the state of the sticky keys.
Is it really that simple? ;-)
Regards,
Dov
On Thu, Nov 25, 2010 at 17:10, Emmanuel Gontcho <gontcho@xxxxxxxxx> wrote:
Thank you all for your answer,
I have never tried before to write a widget from scratch, nor now,
cause I have no time, the software must work before 15th december. So
quickly I made what you can see in the attachment, using one or two
functions, GtkTable and buttons, I think it is enough for the
begining.
2010/11/24, Paul Davis <paul@xxxxxxxxxxxxxxxxxxxxx>:
> On Wed, Nov 24, 2010 at 10:46 AM, Frederico <frede.sch@xxxxxxxxx> wrote:
>> I think that this kind of feature normally is abstracted by the OS.
>> Ex: Android always shows a virtual keyboard when a text widget have
>> focus. Other example is the virtual keyboard of windows, but it must
>> be manually executed, differently from Android.
>
> he's asking about the existence of a GTK widget that can be used for this.
>
> the answer, AFAIK, is that no such widget exists.
> _______________________________________________
> gtk-list mailing list
> gtk-list@xxxxxxxxx
> http://mail.gnome.org/mailman/listinfo/gtk-list
>
--
Emmanuel Mbenga Gontcho
!!!!! Gem !!!!!
gontcho.wordpress.com
N'utilisez pas Windows 7. Pour savoir pourquoi : http://windows7sins.org/
Don't use Windows 7. To know why : http://windows7sins.org/
Membre de l'April - « promouvoir et défendre le logiciel libre » -
http://www.april.org
Rejoignez maintenant plus de 2 500 personnes, associations, entreprises et
collectivités qui soutiennent notre action
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list
_______________________________________________ gtk-list mailing list gtk-list@xxxxxxxxx http://mail.gnome.org/mailman/listinfo/gtk-list