On Mon, Mar 15, 2004 at 10:32:50AM -0800, Raghu Ram Murthy wrote:
> Hai,
> 
> Is there any way to send events to application other
> than widgets?

Are you referring to the event's source or its destination?

pgAppMessage() lets you send events from a client to a widget
(which may be owned by the same client or another client)

Most events are required to have a widget as their destination,
but there are a few that are sent to the client itself. PG_WE_*
events are Widget Events, PG_NWE_* are Non-Widget Events.

If you want a way to synthesize arbitrary events on the client
side, this isn't possible. You can however use a client-side
input filter to send "triggers", the events passed from input
driver to widget.

If there is a good reason to allow clients to synthesize arbitrary
events for other clients, a new request could be implemented.
The implementation for the 'appmsg' request behind pgAppMsg
would be a good starting point. Besides a little sanity checking,
it would just need to call post_event().

--Micah

-- 
Only you can prevent creeping featurism!


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Pgui-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/pgui-devel

Reply via email to