PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook Program Addins Customizing contacts

Reply

Customizing contacts

 
Thread Tools Rate Thread
Old 09-03-2005, 06:34 PM   #1
Martin Jedrzejewski
Guest
 
Posts: n/a
Default Customizing contacts


Hi,

I would like to write addin that for given contact would invoke function
from external dll. I know that I cannot add new menu item to popup context
menu that is shown when contact is right clicked. I would like to simulate
this functionality somehow. Is it somehow possible to check from inside of
addin which contact is currently selected?

thanks,
Martin


  Reply With Quote
Old 10-03-2005, 03:50 PM   #2
Ken Slovak - [MVP - Outlook]
Guest
 
Posts: n/a
Default Re: Customizing contacts

You can add things to the context menu but unfortunately there's no easy way
to tell what was right-clicked. It won't necessarily be the contact that is
currently selected. See http://www.outlookcode.com/codedetail.aspx?id=526
for an example of adding to an Explorer context menu.

To tell what's selected in a folder use ActiveExplorer.Selection, which is a
collection.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Martin Jedrzejewski" <luskan@aster.pl> wrote in message
news:%23JkrbaNJFHA.1304@TK2MSFTNGP09.phx.gbl...
> Hi,
>
> I would like to write addin that for given contact would invoke function
> from external dll. I know that I cannot add new menu item to popup context
> menu that is shown when contact is right clicked. I would like to simulate
> this functionality somehow. Is it somehow possible to check from inside of
> addin which contact is currently selected?
>
> thanks,
> Martin
>


  Reply With Quote
Old 10-03-2005, 07:30 PM   #3
Martin Jedrzejewski
Guest
 
Posts: n/a
Default Re: Customizing contacts

hi, thanks for the hints, I was actually thinking of using FolderSwitch and
SelectionChange events for getting information on which contact (or
contacts) are choosen. What bother me is whether this will be portable, or I
will have to set some version of Office as a minimum.

Martin

Uzytkownik "Ken Slovak - [MVP - Outlook]" <kenslovak@mvps.org> napisal w
wiadomosci news:uTysmjYJFHA.1528@TK2MSFTNGP09.phx.gbl...
> You can add things to the context menu but unfortunately there's no easy
> way to tell what was right-clicked. It won't necessarily be the contact
> that is currently selected. See
> http://www.outlookcode.com/codedetail.aspx?id=526 for an example of adding
> to an Explorer context menu.
>
> To tell what's selected in a folder use ActiveExplorer.Selection, which is
> a collection.
>
> --
> Ken Slovak
> [MVP - Outlook]
> http://www.slovaktech.com
> Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
> Reminder Manager, Extended Reminders, Attachment Options
> http://www.slovaktech.com/products.htm
>
>
> "Martin Jedrzejewski" <luskan@aster.pl> wrote in message
> news:%23JkrbaNJFHA.1304@TK2MSFTNGP09.phx.gbl...
>> Hi,
>>
>> I would like to write addin that for given contact would invoke function
>> from external dll. I know that I cannot add new menu item to popup
>> context menu that is shown when contact is right clicked. I would like to
>> simulate this functionality somehow. Is it somehow possible to check from
>> inside of addin which contact is currently selected?
>>
>> thanks,
>> Martin
>>

>



  Reply With Quote
Old 11-03-2005, 02:53 PM   #4
Ken Slovak - [MVP - Outlook]
Guest
 
Posts: n/a
Default Re: Customizing contacts

Selection won't change if the user right-clicks on something not currently
selected. I haven't found a reasonable way to tell what was right-clicked.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Martin Jedrzejewski" <luskan@aster.pl> wrote in message
news:e%2365eeaJFHA.2704@tk2msftngp13.phx.gbl...
> hi, thanks for the hints, I was actually thinking of using FolderSwitch
> and SelectionChange events for getting information on which contact (or
> contacts) are choosen. What bother me is whether this will be portable, or
> I will have to set some version of Office as a minimum.
>
> Martin


  Reply With Quote
Old 14-03-2005, 08:00 PM   #5
Martin Jedrzejewski
Guest
 
Posts: n/a
Default Re: Customizing contacts

hi, I have implemented my custom addin but actually I wasnt able to add menu
item to contacts context menu. Well, I was able to add but Outlook was far
from being stable, if I wasnt using Reset() function before adding menu item
(in OnUpdate) it all worked well, but menu item was seen only first time
context menu was being show. I read that this functionality is not supported
by Outlook Object Model. Link that You have provided above uses VB, I use
COM Addins and C++. I suppose there is no difference between VB and C++ when
it comes to OOM functionality??

Currently I just added new tollbar button and Tools menu item. It would be
great if Outlook supported customization of context menus as Windows Address
Book does with WAB API.

martin

Uzytkownik "Ken Slovak - [MVP - Outlook]" <kenslovak@mvps.org> napisal w
wiadomosci news:u2QfvokJFHA.2980@TK2MSFTNGP10.phx.gbl...
> Selection won't change if the user right-clicks on something not currently
> selected. I haven't found a reasonable way to tell what was right-clicked.
>
> --
> Ken Slovak
> [MVP - Outlook]
> http://www.slovaktech.com
> Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
> Reminder Manager, Extended Reminders, Attachment Options
> http://www.slovaktech.com/products.htm
>
>
> "Martin Jedrzejewski" <luskan@aster.pl> wrote in message
> news:e%2365eeaJFHA.2704@tk2msftngp13.phx.gbl...
>> hi, thanks for the hints, I was actually thinking of using FolderSwitch
>> and SelectionChange events for getting information on which contact (or
>> contacts) are choosen. What bother me is whether this will be portable,
>> or I will have to set some version of Office as a minimum.
>>
>> Martin

>



  Reply With Quote
Old 15-03-2005, 02:43 PM   #6
Ken Slovak - [MVP - Outlook]
Guest
 
Posts: n/a
Default Re: Customizing contacts

I have no idea about C++, I don't use it.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Martin Jedrzejewski" <luskan@aster.pl> wrote in message
news:ub2eHCNKFHA.4092@tk2msftngp13.phx.gbl...
> hi, I have implemented my custom addin but actually I wasnt able to add
> menu item to contacts context menu. Well, I was able to add but Outlook
> was far from being stable, if I wasnt using Reset() function before adding
> menu item (in OnUpdate) it all worked well, but menu item was seen only
> first time context menu was being show. I read that this functionality is
> not supported by Outlook Object Model. Link that You have provided above
> uses VB, I use COM Addins and C++. I suppose there is no difference
> between VB and C++ when it comes to OOM functionality??
>
> Currently I just added new tollbar button and Tools menu item. It would be
> great if Outlook supported customization of context menus as Windows
> Address Book does with WAB API.
>
> martin


  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

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