Quantcast
Channel: SCN : Discussion List - PowerBuilder Developer Center
Viewing all articles
Browse latest Browse all 2881

TabControl - Event for Activate/Deactive Tabpage

$
0
0

This is an interesting problem that I've been tasked with...

 

In a Windows application with a Tab Control and custom user objects as the pages, how long (in seconds duration) is each tab page visible/active to the user?

 

It's interesting task because as you know, if the tab is active and the application is deactivated (not the active application), the timer on the page should pause.  Also, as the user tabs through the application, the tab page that isn't being viewed should also pause, and restart when the current page.  So, lots of events being triggered, but I'm not sure if there's an easy (foolproof) way to determine if a tab page is both active and currently visible.

 

Are there any events that capture when a tab page is active and not active?  I've been using the C++ Spy tool and there is a WM_USER + 1037 message that seems to be thrown which might work.  But the wparam that is coming back is not seeming to correspond with anything known - perhaps a handle?

 

Any thoughts on how to accomplish this now seemingly daunting task?

 

Thanks,

Brian

 

 

p.s. PB12.5/Windows7


Viewing all articles
Browse latest Browse all 2881

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>