Trap Mouse Up Event in Word Addin's Word Application

M

MIS Dude

Happy New Year & Dear Fellow Programmers:

Are there any ways to trap the "Mouse Up" or "Mouse Down" events in a Word
Addin project?

Best,

MIS Dude
 
P

p0

Happy New Year & Dear Fellow Programmers:

Are there any ways to trap the "Mouse Up" or "Mouse Down" events in a Word
Addin project?

Best,

MIS Dude

Are you talking a VSTO or a VBA addin (macro)? Where do you want to
trap those events?

Where Word puts whatever you type: I don't think so, but I might be
wrong.
On the Word 2007 ribbon: no, there is only an onAction event you can
define for when your own addin gets clicked (so that would be the
MouseUp event). You can not capture when one of the predefined items
is clicked. You could of course hide one of the predefined tabs and
replace it with an exact copy where you capture all those onAction
events. (Note that VBA defines sub routines for most menu/ribbon
buttons you click. However, those are 'onAction' events rather than
MouseUp and MouseDown)
On a userform: yes
 
C

Cindy M.

Hi =?Utf-8?B?TUlTIER1ZGU=?=,
Are there any ways to trap the "Mouse Up" or "Mouse Down" events in a Word
Addin project?
Word provides no "mouse" events in its object model. You'd have to hook into
the Windows API in order to pick up these events.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :)
 

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