Page 1 of 1

How do I detect if AX control has regained focus?

Posted: Thu Jun 30, 2011 11:18 am
by fiscal
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

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

Posted: Wed Jul 06, 2011 6:28 pm
by Tracker - Clarion Support
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.

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

Posted: Wed Jul 06, 2011 10:12 pm
by fiscal
Thanks Craig.

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

Posted: Wed Jul 06, 2011 10:31 pm
by Paul - Tracker Supp
Craig will follow up on this thread when he has something.

:-)

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

Posted: Wed Aug 17, 2011 3:27 pm
by Tracker - Clarion Support
Hi Tony!

Follow up:

This really can't be done in Viewer 2.x. It shoud be possible in Viewer 3, however.