A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Get the Position of Outlook 2007 Control relative to screen



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old November 24th 07, 01:50 AM posted to microsoft.public.outlook.program_vba
n777krish
external usenet poster
 
Posts: 7
Default Get the Position of Outlook 2007 Control relative to screen

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.

  #2  
Old November 26th 07, 04:23 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Get the Position of Outlook 2007 Control relative to screen

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.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"n777krish" wrote in message
...
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.


  #3  
Old November 26th 07, 11:02 PM posted to microsoft.public.outlook.program_vba
n777krish
external usenet poster
 
Posts: 7
Default Get the Position of Outlook 2007 Control relative to screen

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.
  #4  
Old November 27th 07, 03:02 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Get the Position of Outlook 2007 Control relative to screen

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.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"n777krish" wrote in message
...
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.


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Import -- using relative dates in a field? Mike B Outlook - Calandaring 2 September 17th 07 02:06 PM
Outlook 2007 Attachment Position [email protected] Outlook and VBA 1 August 6th 07 05:29 PM
Stationery GPO Control - Outlook 2003/2007 -_- Outlook - General Queries 1 May 22nd 07 03:32 AM
Outlook View Control embedded in custom control [email protected] Outlook - General Queries 1 November 8th 06 12:41 PM
Outlook View Control embedded in custom control [email protected] Outlook - Using Forms 1 November 8th 06 12:41 PM


All times are GMT +1. The time now is 09:28 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.