Get the Position of Outlook 2007 Control relative to screen

N

n777krish

Hi all,

In Outlook 2003 and below a commandbarbutton used to have a Top and
Left property that allowed us to determine the location of the control
on the screen.

Is there any way to get the position of a Control in a Group on the
Outlook 2007 Ribbon.
The Office.IRibbonControl being passed into all the callbacks only has
three properties available.

I want to determine the position of the control and display my own tip
(just a form) on the screen for the user pointing at the Control
inside the group.

I have created my own Group on the toolbar which has some buttons in
it.

Thank you for any guidance.

Neil Goundar.
 
K

Ken Slovak - [MVP - Outlook]

There's no way to do it that I know of. Even looking in Spy++ I don't see
separate windows for the ribbon objects, just for the ribbon itself.
 
N

n777krish

Hi Ken,

Thank you for your response. I had already checked using Spy++ and I
wasn't able to get a window myself.

Isn't there any other way to do this? Probably not since there don't
seem to be windows inside the Ribbon that we can access.

Thanks once again.

Neil Goundar.
 
K

Ken Slovak - [MVP - Outlook]

No way to do it that I know of.

There are no properties like Top or Left for Ribbon controls, none of the
*Mso methods added to the CommandBars object help and since they seem to be
constructing everything behind the scenes into one window nothing to be done
using Win32 API calls.

You might want to try posting something about this problem on Jensen
Harris's blog (http://blogs.msdn.com/jensenh/default.aspx) to throw this up
for possible inclusion in Office 14. I don't expect to see a lot of new
functionality returned that we lost with the ribbon but it never hurts to
let the owner of the ribbon know what you think is missing.
 

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