How do I detect if AX control has regained focus?

PDF-XChange Viewer SDK
Simple DLL and ActiveX

Moderators: Tracker Support, TrackerSupp-Daniel, Chris - Tracker Supp, Vasyl-Tracker Dev Team, Sean - Tracker, Tracker Supp-Stefan

Post Reply
fiscal
User
Posts: 138
Joined: Fri Aug 06, 2004 12:09 am
Contact:

How do I detect if AX control has regained focus?

Post by fiscal » Thu Jun 30, 2011 11:18 am

Hi Craig,

How can I detect when the AX has regained focus?

I thought PDFView.OnPropertyChanged method might be the place, but I cannot find a property that states the AX has focus.

I just wanted to reset a value on a window control when the AX gets focus.

Thanks

Tony

Tracker - Clarion Support
Site Admin
Posts: 1412
Joined: Wed Jun 30, 2004 4:45 pm
Location: Maryland, USA
Contact:

Re: How do I detect if AX control has regained focus?

Post by Tracker - Clarion Support » Wed Jul 06, 2011 6:28 pm

Hi Tony!

There MAY be a way to detect this. I stumbled across the value "Global::FocusGained" being returned by the NamedNotify event. However this is not documented anywhere in the Viewer ActiveX documentation, so I'll have to check with the Project Manager about how to use this, and if there's any special return codes I need to know about.
Craig Ransom
Tracker Software - Clarion Support
http://www.tracker-software.com

fiscal
User
Posts: 138
Joined: Fri Aug 06, 2004 12:09 am
Contact:

Re: How do I detect if AX control has regained focus?

Post by fiscal » Wed Jul 06, 2011 10:12 pm

Thanks Craig.

User avatar
Paul - Tracker Supp
Site Admin
Posts: 4877
Joined: Wed Mar 25, 2009 10:37 pm
Location: Chemainus, Canada
Contact:

Re: How do I detect if AX control has regained focus?

Post by Paul - Tracker Supp » Wed Jul 06, 2011 10:31 pm

Craig will follow up on this thread when he has something.

:-)
_________________
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.

Best regards

Paul O'Rorke
Tracker Support North America
http://www.tracker-software.com

Tracker - Clarion Support
Site Admin
Posts: 1412
Joined: Wed Jun 30, 2004 4:45 pm
Location: Maryland, USA
Contact:

Re: How do I detect if AX control has regained focus?

Post by Tracker - Clarion Support » Wed Aug 17, 2011 3:27 pm

Hi Tony!

Follow up:

This really can't be done in Viewer 2.x. It shoud be possible in Viewer 3, however.
Craig Ransom
Tracker Software - Clarion Support
http://www.tracker-software.com

Post Reply