Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Window events: (2 Items)
   
Window events  
is there any Event available to capture all the touch actions occuring in a Window.
touch may be made on any button or other widgets in the Window. buttons and other widget will  have its own callback for
 activate and Arm etc.
  but this event concerned with the Wimdow should be able to capture all theTouch made in all sub Widgets and the window
.

 we need to implement screen saver(power saving), which requires to know the
 last touch action in the window and window is  left untouched for someperiod.

touch action could be scanned by adding callbacks to all the widgets and window.
but in our application we have large number of number of windows and widgets code become comlpex if we handle widget 
wise Events rather than the Window Events. 

please guide us in solving this.
Re: Window events  
You should use a PtRegion.
Take a look at this sample application http://community.qnx.com/integration/viewvc/viewvc.cgi/trunk/apps/ph-samples/
ptregion/?root=graphics&system=exsy1001. It "captures" key events. You can extend the sample to collect pointer events.
Or look at the Photon 'saver' code http://community.qnx.com/integration/viewvc/viewvc.cgi/trunk/apps/saver/?root=
graphics&system=exsy1001