Capture F1 Key

S

Steve Cox

Since no one came up with an answer to my co-worker's question. I am going
to post again.

There must be a way to capture the F1 key on the Visio ActiveX control.

I can't believe that the average person that creates an application around
this control wants the default Visio help to come up when F1 is pressed.

Mark Nelson suggested to capture the OnKeystrokeMessageForAddon, but this
event does not fire. Is there an additional property that needs to be set.

I know you need to set the KeyPreview on a Form to get some events to fire,
but that seems to have no effect on this, or on the KeyUp or KeyDown events.
 
M

Mark Nelson [MS]

After checking with the development team, I have to correct my original
reply. The OnKeystrokeMessageForAddon event is designed to capture
keystrokes (including F1) in Windows owned by add-ons. The most typical
scenario would be for an add-on to create a window similar to the modeless
Custom Properties window or Drawing Explorer window built into Visio. The
source for this event is a Visio Window object. As far as I can determine,
it does not fire for standard Visio windows like the drawing window.

At this point I don't have a solution to the problem of capturing the F1 key
for the ActiveX control.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top