PC Review


Reply
Thread Tools Rate Thread

Customize right button menu

 
 
Roberto GarcĂ­a
Guest
Posts: n/a
 
      9th Feb 2009
Hello,

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

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!

 
Reply With Quote
 
 
 
 
Ken Slovak - [MVP - Outlook]
Guest
Posts: n/a
 
      9th Feb 2009
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 GarcĂ*(E-Mail Removed)> wrote in message
news:C3E6F214-51BA-4D21-B959-(E-Mail Removed)...
> Hello,
>
> I'm new to the developing add ins for outlook and I need some information
> about the viability of some points. Here they are:
>
> 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!
>


 
Reply With Quote
 
Roberto GarcĂ­a
Guest
Posts: n/a
 
      10th Feb 2009
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 GarcĂ*(E-Mail Removed)> wrote in message
> news:C3E6F214-51BA-4D21-B959-(E-Mail Removed)...
> > Hello,
> >
> > I'm new to the developing add ins for outlook and I need some information
> > about the viability of some points. Here they are:
> >
> > 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!
> >

>
>

 
Reply With Quote
 
Roberto GarcĂ­a
Guest
Posts: n/a
 
      10th Feb 2009

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.
 
Reply With Quote
 
Ken Slovak - [MVP - Outlook]
Guest
Posts: n/a
 
      10th Feb 2009
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" <(E-Mail Removed)> wrote in message
news:B100EC85-D437-4AF8-8697-(E-Mail Removed)...
>
> 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.


 
Reply With Quote
 
Ken Slovak - [MVP - Outlook]
Guest
Posts: n/a
 
      10th Feb 2009
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" <(E-Mail Removed)> wrote in message
news:01F25CE6-4867-4426-AE5C-(E-Mail Removed)...
> 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!


 
Reply With Quote
 
Roberto GarcĂ­a
Guest
Posts: n/a
 
      16th Feb 2009
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" <(E-Mail Removed)> wrote in message
> news:01F25CE6-4867-4426-AE5C-(E-Mail Removed)...
> > 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!

>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Customize power button (Both of start menu and pc) to logoff Michele Windows Vista General Discussion 8 7th Oct 2008 09:17 PM
How to customize the menu “new” Francesco Magagnino Windows Vista General Discussion 1 28th May 2008 08:33 AM
Customize menu with customize picture. =?Utf-8?B?UGF0?= Microsoft Word Document Management 1 19th Jul 2005 02:03 PM
Customize right mouse button shortcut menu =?Utf-8?B?QXJ0cyBMb3N0?= Microsoft Excel Misc 1 11th Sep 2004 07:26 PM
Customize Menu Nathan Microsoft Excel Misc 3 3rd Mar 2004 01:31 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:07 AM.