Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Hi, everyone. I wonder who can resolve my problem.
The RootContainer structure has an piwCapture member. It is used to capture pen down/move/up events.
If an widget calls IWIDGET_SetCapture(pIWidget, TRUE) after it receives an EVT_PEN_DOWN event, the subsequent EVT_PEN_XXX event will be captured by the widget until IWIDGET_SetCapture(pIWidget, FALSE) is called.
I felt confused in case of one more RootContainer existing in system.
I created two IROOTFORM for two Applet(A and B), so each of them had its own RootConainer. I press one image button in Applets A and held the pen(to ensure IWIDGET_SetCapture(pIWidget, FALSE) was not called).
I activated Applet B (through phone call and etc.) when the PEN was still in captured state for Applet A. If I released the PEN when Applet B was the top vistable Applet, the EVT_PEN_UP event would be sent to Applet B whilst Applet A would be sent nothing and it would still consider the PEN in captured state.
Once closing Applet B, the image button in Applet A would remain selected state.

I think this is caused by the lackness of WindowManager in our system, but how can I solv this?
Thanks in advance.

Applet A was suspended when Applet B started...right? So how can it get the PEN events??? I think IWidget_SetCapture is valid for the specific app and not across apps.

Applet A was suspended when Applet B started...right? So how can it get the PEN events??? I think IWidget_SetCapture is valid for the specific app and not across apps.

Thank you for your answer.
Could you explain "suspended" in details?
I want to know why windows mobile and Android can capture PEN event across apps while buiw can't. Should it be a buiw bug? Or can you tell me some clue to solv it?

Thank you for your answer.
Could you explain "suspended" in details?
I want to know why windows mobile and Android can capture PEN event across apps while buiw can't. Should it be a buiw bug? Or can you tell me some clue to solv it?

In BREW, only one app can be top visible (access display) at a time. If you start multiple apps when all other apps except top-visible app will be in suspended mode. Only top visible app can receive events by default.
In Brew MP, there is window manager app (top visible) which manages windowed apps (runs in background) and sends the events to specific windowed app.

In BREW, only one app can be top visible (access display) at a time. If you start multiple apps when all other apps except top-visible app will be in suspended mode. Only top visible app can receive events by default.
In Brew MP, there is window manager app (top visible) which manages windowed apps (runs in background) and sends the events to specific windowed app.