Page 1 of 1

Detect event in ActiveX control

Posted: Fri Oct 25, 2019 5:49 pm
by Parps
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

Re: Detect event in ActiveX control

Posted: Mon Oct 28, 2019 4:24 pm
by Tracker Supp-Stefan
Hello Parps,

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

Regards,
Stefan

Re: Detect event in ActiveX control

Posted: Sat Jun 20, 2020 12:53 pm
by Parps
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

Re: Detect event in ActiveX control

Posted: Mon Aug 24, 2020 1:29 am
by patsypage
Was trying to fix this for about a week and this fixed it

Re: Detect event in ActiveX control

Posted: Tue Aug 25, 2020 8:04 am
by Parps
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.