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 » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Customize right button menu



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old February 9th 09, 01:02 PM posted to microsoft.public.outlook.program_addins
Roberto García
external usenet poster
 
Posts: 1
Default Customize right button menu

Hello,

I'm new to the developing add ins for outlook and I need some information
about the viability of some points. Here they a

I would like to know if it's posible to disable some elements of the right
button menu such as Open and Delete when clicking an appoinment in the
calendar.
I need to know also, if it's posible, when the user doble clicks an
appoinment, to launch an application instead of opening the edit window for
the appoinment.

Is there any kind of documentation where I can find some information about
this stuff?
I will thank any suggestion

Cheers!

Ads
  #2  
Old February 9th 09, 02:17 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Customize right button menu

Version of Outlook?

Handling context menus is built-in with Outlook 2007, for earlier versions
you have to use a hack shown at www.outlookcode.com to handle the
Explorer.CommandBars_OnUpdate() event. For Outlook 2007 you use whichever of
the Application context menu events that handle what you want.

You can then get the specific CommandBarButton object you want to disable
and set its Enabled property to false.

When an item is opened it fires the Inspectors.NewInspector event. So if you
handle that event you know when something is being opened. That event passes
you the Inspector to be opened and you can check for
Inspector.CurrentItem.Class to see if it's an item type you want to handle,
for example if the Class is olMail then it's a mail item.

You cannot cancel the opening of the Inspector but you can start a program
appropriately at that point. If you don't want the Inspector window there
you would have to handle Inspector events and close the Inspector on its
first Activate event. That will however cause a flash on the screen as the
Inspector window is opened and closed.

It's impossible to provide any sample code since you didn't mention your
Outlook version or the language you intend to use. You can find lots of
Outlook code samples in various languages and for various versions at
www.outlookcode.com.

--
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


"Roberto GarcÃ*a" Roberto wrote in message
...
Hello,

I'm new to the developing add ins for outlook and I need some information
about the viability of some points. Here they a

I would like to know if it's posible to disable some elements of the right
button menu such as Open and Delete when clicking an appoinment in the
calendar.
I need to know also, if it's posible, when the user doble clicks an
appoinment, to launch an application instead of opening the edit window
for
the appoinment.

Is there any kind of documentation where I can find some information about
this stuff?
I will thank any suggestion

Cheers!


  #3  
Old February 10th 09, 08:12 AM posted to microsoft.public.outlook.program_addins
Roberto García[_2_]
external usenet poster
 
Posts: 3
Default Customize right button menu

Hello again,

Thank you so much for your answer.

The version of Outlook I'm using is 2003.
I haven´t found yet the hack you mentioned. Would you mind to specify its
location?

Thank you

Cheers!


"Ken Slovak - [MVP - Outlook]" wrote:

Version of Outlook?

Handling context menus is built-in with Outlook 2007, for earlier versions
you have to use a hack shown at www.outlookcode.com to handle the
Explorer.CommandBars_OnUpdate() event. For Outlook 2007 you use whichever of
the Application context menu events that handle what you want.

You can then get the specific CommandBarButton object you want to disable
and set its Enabled property to false.

When an item is opened it fires the Inspectors.NewInspector event. So if you
handle that event you know when something is being opened. That event passes
you the Inspector to be opened and you can check for
Inspector.CurrentItem.Class to see if it's an item type you want to handle,
for example if the Class is olMail then it's a mail item.

You cannot cancel the opening of the Inspector but you can start a program
appropriately at that point. If you don't want the Inspector window there
you would have to handle Inspector events and close the Inspector on its
first Activate event. That will however cause a flash on the screen as the
Inspector window is opened and closed.

It's impossible to provide any sample code since you didn't mention your
Outlook version or the language you intend to use. You can find lots of
Outlook code samples in various languages and for various versions at
www.outlookcode.com.

--
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


"Roberto GarcÃ*a" Roberto wrote in message
...
Hello,

I'm new to the developing add ins for outlook and I need some information
about the viability of some points. Here they a

I would like to know if it's posible to disable some elements of the right
button menu such as Open and Delete when clicking an appoinment in the
calendar.
I need to know also, if it's posible, when the user doble clicks an
appoinment, to launch an application instead of opening the edit window
for
the appoinment.

Is there any kind of documentation where I can find some information about
this stuff?
I will thank any suggestion

Cheers!



  #4  
Old February 10th 09, 08:27 AM posted to microsoft.public.outlook.program_addins
Roberto García[_2_]
external usenet poster
 
Posts: 3
Default Customize right button menu


Sorry, I forgot to ask if your explanation about opening other application
can be applied to Outlook 2003.
Is the new inspector event similar to the open event of an appointment? i
need it only to be fired with this especific item and send to that
application one of the parameters of the appointment.

Thanks.
  #5  
Old February 10th 09, 02:56 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Customize right button menu

NewInspector fires before the Open event for an item. That's how you know an
item is about to be opened. You can start another application using code no
matter which version of Outlook you're using.

--
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


"Roberto GarcÃ*a" wrote in message
...

Sorry, I forgot to ask if your explanation about opening other application
can be applied to Outlook 2003.
Is the new inspector event similar to the open event of an appointment? i
need it only to be fired with this especific item and send to that
application one of the parameters of the appointment.

Thanks.


  #6  
Old February 10th 09, 02:57 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Customize right button menu

There are lots of examples of doing that at outlookcode.com, just search on
"context menu" and start looking at the results.

--
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


"Roberto GarcÃ*a" wrote in message
...
Hello again,

Thank you so much for your answer.

The version of Outlook I'm using is 2003.
I haven´t found yet the hack you mentioned. Would you mind to specify its
location?

Thank you

Cheers!


  #7  
Old February 16th 09, 08:03 AM posted to microsoft.public.outlook.program_addins
Roberto García[_2_]
external usenet poster
 
Posts: 3
Default Customize right button menu

Thank you so much for the information, it was really useful.

"Ken Slovak - [MVP - Outlook]" wrote:

There are lots of examples of doing that at outlookcode.com, just search on
"context menu" and start looking at the results.

--
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


"Roberto GarcÃ*a" wrote in message
...
Hello again,

Thank you so much for your answer.

The version of Outlook I'm using is 2003.
I haven´t found yet the hack you mentioned. Would you mind to specify its
location?

Thank you

Cheers!



 




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
Customize context menu Sven Berg Outlook - General Queries 1 September 25th 08 05:47 PM
adding button or menu to outlook soner[_2_] Add-ins for Outlook 5 September 24th 08 01:00 AM
Customize Outlook Today Button Does Not Work handsonmanager Outlook - General Queries 0 May 21st 08 08:04 PM
Customize context menu for reminders in outlook 2003 none Outlook - Calandaring 1 September 21st 06 04:34 AM
Is there any way to customize the drop down menu for flags in cont smoran Outlook - Using Contacts 1 July 12th 06 11:52 PM


All times are GMT +1. The time now is 05:47 PM.


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.