Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Post event to a window that created by another application: (7 Items)
   
Post event to a window that created by another application  
Hi,I try to post a event to a window that created by another application by kdPostWindowEventQNX.

The "KD_QNX_window" documentation:
http://www.qnx.com/developers/docs/6.4.1/composition_manager/dev_guide/kd_qnx_window.html refers to post an event into 
another application's queue.

But what is the value of window argument?
How to know the pointer of window?

 

Re: Post event to a window that created by another application  
Normally, this function would be used by applications with a window registered as delegate. Delegates receive events 
whenever a window is created. Information contained in the event includes a KDWindow* that the application can use to 
make such calls.

For now, we don't provide any other mechanism for non-delegate applications to send events to other processes. Do you 
mind summarizing what you intended doing with these cross-process KD events ?
Re: Post event to a window that created by another application  
I read the program gles1-hmi.

Receive event and create window program:

event_win = KDWaitEvent(1000000);

if(event_win == KD_NULL){
    return ;
} 

switch(event_win->type){
    case KD_QNX_EVENT_WINDOW_CREATE:
            set the window with delegates of composition manager 
            continue;
    case KD_QNX_EVENT_WINDOW_REALIZE:
            set border of window
            break;
    case KD_QNX_EVENT_WINDOW_PROPERTY:
            change the size or position of window 
            break;
   case KD_QNX_EVENT_WINDOW_CLOSE:
           remove the border of window 
          break;
}

I don't know the event where come from?
Another application post event?
OpenKode core post event?

Thank you very much!
Re: Post event to a window that created by another application  
These events come from the windowing system.
Re: Post event to a window that created by another application  
I'm very sorry.
The windowing system is composition manager?
How to create an event with composition manager?
How to get the documentation about the event framework of composition manager?

Thank you very much!  
Re: Post event to a window that created by another application  
Yes, the windowing system is the composition manager.

You can manually create events with kdCreateEvent and send it to another window using kdPostWindowEventQNX.

The composition manager implements the OpenKODE 1.0.2 specification, as part as events goes, so it is a good place to 
start. Any changes are documented in our two extensions, KD_QNX_window and KD_QNX_input.

http://www.khronos.org/registry/kode/specs/openkode.1.0.2.pdf

http://www.qnx.com/developers/docs/6.4.1/composition_manager/dev_guide/kd_qnx_window.html

http://www.qnx.com/developers/docs/6.4.1/composition_manager/dev_guide/kd_qnx_input.html
Re: Post event to a window that created by another application  
I'm very sorry.This documentions had been read.The framework of event and window cann't understand.For example:

1.The HMI flash contains some play buttons.These buttons control the video play.
2. The window that video picture display created
3.The window under the HMI flash 
4.The flash player will register itself as a delegate with io-winmgr
5.The kdMain function that video display window created receive event and handled

I don't know these questions
1.How to transfer the event of touching button to composition window manager
2.The composition window manager tranfer the pointer input event to the kdMain,or tranfer the window create event to  
the kdMain?
3.It can create some KDwindows in a kdMain window?    

Thank you very much!