Set focus to ActiveX control

PDF-XChange Viewer SDK
Simple DLL and ActiveX

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

Post Reply
Parps
User
Posts: 70
Joined: Mon Sep 28, 2009 10:06 am

Set focus to ActiveX control

Post by Parps » Tue Oct 30, 2012 10:27 pm

Hi Craig

When I click on a Clarion button the ActiveX control looses focus. I have a workaround when opening a document. But I cannot use that one when clicking on a button. Earlier you advised to try the SetFocus API, but that I couldn’t get that working.

Is there a solution to give the focus back to the ActiveX control?

Cheers,
Koen

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

Re: Set focus to ActiveX control

Post by Tracker - Clarion Support » Tue Oct 30, 2012 11:20 pm

Hi Koen!

The SetFocus was suggested by the ActiveX developer. If this doesn't work in Clarion, I'm fresh out of ideas.
Craig Ransom
Tracker Software - Clarion Support
http://www.tracker-software.com

Parps
User
Posts: 70
Joined: Mon Sep 28, 2009 10:06 am

Re: Set focus to ActiveX control

Post by Parps » Wed Oct 31, 2012 5:39 pm

Hi Craig,

Maybe DoVerb can do something. I played a bit with ?Ole1{PROP:DoVerb} = -3 and that hides the control. Not what I needed, but it was funny to see it happening :)

Unfortunate I cannot find the document PDFV_AX.pdf where this should explained in more detail.

However, not a very important issue now.

Cheers,
Koen

User avatar
Tracker Supp-Stefan
Site Admin
Posts: 13428
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: Set focus to ActiveX control

Post by Tracker Supp-Stefan » Wed Oct 31, 2012 5:44 pm

Hi Koen,

Please find a copy of the manual file in question attached. It's included in the non-Clarion Viewer AX SDK installers and I presume it should be also present in the Clarion ones.

Best,
Stefan
Attachments
PDFV_AX.pdf
(1.58 MiB) Downloaded 696 times

Parps
User
Posts: 70
Joined: Mon Sep 28, 2009 10:06 am

Re: Set focus to ActiveX control

Post by Parps » Wed Oct 31, 2012 7:51 pm

Hi Stefan,

Thank you. The document isn't available in the Clarion install. I didn't check the non-Clarion installers yet, but now I don't need to anymore. :)

Thanks again, I will investigate a bit more.

Best regards,
Koen

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

Re: Set focus to ActiveX control

Post by Tracker - Clarion Support » Wed Oct 31, 2012 7:55 pm

:)
Craig Ransom
Tracker Software - Clarion Support
http://www.tracker-software.com

Post Reply