Hi Micah,
To send keyboard events to a widget without using the keyboard, I try to
use the pgInFilterSend function.
I have the following app:
A text area and a button widgets. And I want to send a keyboard event like
for example ctrl-x to the text area when the button is pushed.
The problem I have is that I don't know how to set the target widget to
send the events. I thought that it could be the one focused and then use
something like:
static pghandle wEdit;
int evtBtn (struct pgEvent *evt)
{
static union pg_client_trigger trig;
trig.content.type = PG_TRIGGER_CHAR;
trig.content.u.kbd.mods |= PGMOD_CTRL;
trig.content.u.kbd.key = PGKEY_x;
pgFocus (wEdit);
pgInFilterSend(&trig);
}
but the event isn't send to the wEdit widget...
Do you have any tips?
TIA,
-philippe
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Pgui-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/pgui-devel