> An event generated with pgInFilterSend will be handled exactly like one
> recieved from the input drivers. The step of dispatching the event to a
> widget is handled by the last input filter in the chain, and currently
> it's not possible for a driver or input filter to effect this dispatch
> process.
> 
> So, if your widget responds to CTRL-X from the keyboard when focused,
> this should work. I do see two problems with it:
> 
> 1. You _must_ zero the contents of the trig structure first. The
>    pg_client_trigger structure has many members you don't care about,
>    and the default value is 0. Just add a line like
>    memset(&trig,0,sizeof(trig));
> 
> 2. You probably don't want a PG_TRIGGER_CHAR event. That's for
> characters   that have been translated to ASCII/Unicode, not for control
> keys,   hotkeys, shortcuts, and such that don't have any textual
> representation.   Try a PG_TRIGGER_KEY event instead. This will be
> converted to a pair of   KEYUP/KEYDOWN triggers in the if_key_preprocess
> input filter.

Yesss! ... bad trigger :-(.
Now it works.

Thanks Micah,
-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

Reply via email to