Re: Events as such :)



The SDPGTK library has extensive support for mimicking user input - it was
developed for a 3D modelling and animation package so users could record and
play-back interactive tutorials, but it would suit your needs as well.  And
even if you're not interested in a C++ binding for GTK+, the code is easy to
follow: http://www.k-3d.com

Regards,
Timothy M. Shead


----- Original Message -----
From: "andew ecu" <andrewecu hotmail com>
To: <gtk-app-devel-list gnome org>
Sent: Tuesday, May 08, 2001 11:13 AM
Subject: Events as such :)



what i'm doing is creating a voice recognition interface on an application
already made using GTK. Now i was wondering.. with a mouse you would go
onto
the screen click the right mouse button and a popup menu would come up.

How could i get the popup menu to come up, without having a mouse as an
interface but by using my voice to call a function?

The existing code for the mouse is like this
gtk_menu_popup(GTK_MENU(menu_to_pop), NULL, NULL, NULL, NULL,
event->button,
event->time);

is there a way to mimic the mouse being pressed and passing something else
in that is hardcoded then event->button, and event->time?

or are there other ways??

Thanks your help will be appretiated alot:)
andrew
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]