Context menu position ? (MSWord)

  • Thread starter Sigurd Stenersen
  • Start date
S

Sigurd Stenersen

My addin is responding to a context menu item in in MS Word. Is there any
way to find out the screen coordinates of the context menu (or even better,
the caret) ?

I'm using VC++ (VS 6) and Office XP.


Sigurd
 
C

Cindy M -WordMVP-

Hi Sigurd,
My addin is responding to a context menu item in in MS Word. Is there any
way to find out the screen coordinates of the context menu (or even better,
the caret) ?

I'm using VC++ (VS 6) and Office XP.
It's "iffy". Word doesn't do too well with screen co-ordinate stuff, but you
can try Application.Window(index).getPoint

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 :)
 
S

Sigurd Stenersen

Cindy said:
It's "iffy". Word doesn't do too well with screen co-ordinate stuff,
but you can try Application.Window(index).getPoint

Thanks a lot, that's exactly what I was looking for.

Sigurd
 
S

Sigurd Stenersen

Sigurd said:
Thanks a lot, that's exactly what I was looking for.

Hmmmm.... How about the same thing in Excel ? And while we're at it -
Powerpoint, Access, Outlook and MSIE ?

(I'm not lazy, just having a hard time figuring out the object model of each
application)


Sigurd
 
C

Cindy M -WordMVP-

Hi Sigurd,
Hmmmm.... How about the same thing in Excel ? And while we're at it -
Powerpoint, Access, Outlook and MSIE ?

(I'm not lazy, just having a hard time figuring out the object model of each
application)
I empathize :) As a general rule, you'll have better luck (or at least a
faster response) if you ask in a newsgroup specific to the application. For
powerpoint, there's just the one group for end-use and dev questions; generally
very well monitored. Then excel.programming for that one.

There are various Access and Outlook groups; I'm not as familiar with those.
(And pretty much no idea about MSIE, but there are InternetExplorer groups on
the list.)

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 :)
 
S

Sigurd Stenersen

Cindy said:
Hi Sigurd,

I empathize :) As a general rule, you'll have better luck (or at
least a faster response) if you ask in a newsgroup specific to the
application. For powerpoint, there's just the one group for end-use
and dev questions; generally very well monitored. Then
excel.programming for that one.

There are various Access and Outlook groups; I'm not as familiar with
those. (And pretty much no idea about MSIE, but there are
InternetExplorer groups on the list.)

Thank you for answering, Cindy.

I got it figured out for Word, Excel, PowerPoint and MSIE now, but
Powerpoint is so messy in other respects that I decided to drop it as a
platform.

I also decided to drop Access before getting into it, as the add-in I'm
working on isn't really all that useful in Access.


Sigurd
 

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