Detect event in ActiveX control

PDF-XChange Viewer SDK for Developer's
(ActiveX and Simple DLL Versions)

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

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

Detect event in ActiveX control

Post by Parps » Fri Oct 25, 2019 5:49 pm

Hi Support,

This is an old issue we never paid attention to. Today we just wondered if it is possible to solve.

A few years ago I made PDF-viewer with the ActiveX control in Clarion. The issue is that the user presses the <Esc> key the viewer isn’t closing. But if the user first clicks on a random another window and than clicks on title bar of the viewer the <Esc> key works as expected closes the viewer window. So it seems that when the ActiveX control has the focus the <Esc> key isn’t trapped for some reason. How can I make this work?

I know Clarion isn’t supported anymore, but I still hope this can be solved. The link to the original post in the Clarion:
viewtopic.php?f=38&t=16238&p=66314&hili ... cut#p66314

Cheers,
Parps

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

Re: Detect event in ActiveX control

Post by Tracker Supp-Stefan » Mon Oct 28, 2019 4:24 pm

Hello Parps,

Maybe this will help you with handling keyboard events in the Viewer AX:
viewtopic.php?p=72601#p72601

Regards,
Stefan

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

Re: Detect event in ActiveX control

Post by Parps » Sat Jun 20, 2020 12:53 pm

Oke, it took me a few months before I got the time to get back on this issue. :oops:

I tried what was suggested in that other topic you suggested.
- AllowAllAccelerators is set to true
- SetProperty("Commands….") is done

Unfortunate it didn’t help. It might be a specific Clarion problem. However it is not a big issue so I decided to let it rest.
So although a bit late, thank you for your response. :D

patsypage
User
Posts: 1
Joined: Mon Aug 24, 2020 1:25 am

Re: Detect event in ActiveX control

Post by patsypage » Mon Aug 24, 2020 1:29 am

Was trying to fix this for about a week and this fixed it

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

Re: Detect event in ActiveX control

Post by Parps » Tue Aug 25, 2020 8:04 am

Hi Patsypage,
patsypage wrote:
Mon Aug 24, 2020 1:29 am
Was trying to fix this for about a week and this fixed it
If you are also a Clarion user I am curious how you did this. For me it wasn't working so mabe I still missing something.

Post Reply