capture cursor location

L

laptop

i need to capture the location of the cursor location on a document, so i
can see if it is sitting on a comment-range.
problem- vba document-level subroutines only handle open-new-close, not
onmousedown, and not onclick.

how do i capture a document-level-onclick-event ???

mike g
 
J

Jezebel

It's technically possible to monitor the Windows message stack; but it's not
something you'd want to try using VBA. Why do you need to know if the user
has clicked within a Comment?
 
M

mpg

the comment will contain the name of an external file or an internal
bookmark jump or some other function i need to perform which will determine
alternate text or altenate document that needs to be displayed in another
frame/pane.
i thought about using hidden text, but it's messy when being viewed, and
that many hyperlinks make the document messy as well. if i hide my
instruction in a comment and execute appropriately, it's much more
attractive visually.

so, if the cursor is resting on an area where a comment exists, then i read
the comment and load other text into the other pane.

hopefully -

mike g
 
J

Jezebel

You could use a macrobutton field.


mpg said:
the comment will contain the name of an external file or an internal
bookmark jump or some other function i need to perform which will
determine alternate text or altenate document that needs to be displayed
in another frame/pane.
i thought about using hidden text, but it's messy when being viewed, and
that many hyperlinks make the document messy as well. if i hide my
instruction in a comment and execute appropriately, it's much more
attractive visually.

so, if the cursor is resting on an area where a comment exists, then i
read the comment and load other text into the other pane.

hopefully -

mike g
 
C

Cindy M -WordMVP-

Hi Mpg,
the comment will contain the name of an external file or an internal
bookmark jump or some other function i need to perform which will determine
alternate text or altenate document that needs to be displayed in another
frame/pane.
i thought about using hidden text, but it's messy when being viewed, and
that many hyperlinks make the document messy as well. if i hide my
instruction in a comment and execute appropriately, it's much more
attractive visually.
There's a related discussion (capturing mouse stuff in Word) going on in one
of the office.developer groups that you might be interested in.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
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 :)
 
L

laptop

cool. thanks Cindy.
mike g


Cindy M -WordMVP- said:
Hi Mpg,

There's a related discussion (capturing mouse stuff in Word) going on in one
of the office.developer groups that you might be interested in.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)


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

mpg

i looked around and didnt find a discussion group. did a lot of searching
for my question, but that came up empty as well.
is it really so unusual to expect a division-onclick or a document-onclick
to return a range?
 
C

Cindy M -WordMVP-

Hi Mpg,
i looked around and didnt find a discussion group. did a lot of searching
for my question, but that came up empty as well.
is it really so unusual to expect a division-onclick or a document-onclick
to return a range?
Here's the thread where the discussion started. Peter Huang presents MSFT's
viewpoint on the topic (put succinctly: Word simply doesn't offer this).
There are separate follow-up message threads in the same group

From: <[email protected]>
Subject: Drag & Drop event - would this work
Date: Sat, 11 Jun 2005 08:28:01 -0700
Newsgroups: microsoft.public.office.developer.com.add_ins


Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
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