Group:  Microsoft Outlook ยป microsoft.public.outlook.program_forms
Thread: Contact form custom action

Contact form custom action
Michele 12/22/2008 11:23:01 AM
Hi all.
I added a custom action in the actions page of the standard IPM.Contact
form. For this custom action i checked the option to show it on the context
menu and on the bar menu. I viewed through VBScript the type property of its
relative control on the context menu and it says it is a commandbutton type.
My aim is to add a submenu to my custom action control but since that is a
commandbutton control i think i can't add a submenu to it. Am i correct and
if not how can i add a submenu to the custom action i added in the Contact
form?
I know i can do that easily using VBA but i would prefer to use only Form
customization and VBScript inside the Form.
Thanks a lot for any suggestion
Best regards
RE: Contact form custom action
Michele 12/22/2008 11:25:01 AM
I forgot to say that i use Outlook 2007.

"Michele" wrote:

[Quoted Text]
> Hi all.
> I added a custom action in the actions page of the standard IPM.Contact
> form. For this custom action i checked the option to show it on the context
> menu and on the bar menu. I viewed through VBScript the type property of its
> relative control on the context menu and it says it is a commandbutton type.
> My aim is to add a submenu to my custom action control but since that is a
> commandbutton control i think i can't add a submenu to it. Am i correct and
> if not how can i add a submenu to the custom action i added in the Contact
> form?
> I know i can do that easily using VBA but i would prefer to use only Form
> customization and VBScript inside the Form.
> Thanks a lot for any suggestion
> Best regards
Re: Contact form custom action
"Ken Slovak - [MVP - Outlook]" <kenslovak[ at ]mvps.org> 12/22/2008 2:10:57 PM
Only a CommandBarPopup menu item can have sub-menus or commands. A
CommandBarButton is just that, only a button.

There are commands you can handle for opening of context menus in Explorers
in Outlook 2007 as a supported mechanism. That allows you to add to the
context menus, but for that you need to use a COM addin or Outlook VBA code,
not VBScript forms code or any actions settings.

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


"Michele" <Michele[ at ]discussions.microsoft.com> wrote in message
news:E9179B6C-F140-4122-89A5-D9B0E69FDEC6[ at ]microsoft.com...
[Quoted Text]
>I forgot to say that i use Outlook 2007.
>
> "Michele" wrote:
>
>> Hi all.
>> I added a custom action in the actions page of the standard IPM.Contact
>> form. For this custom action i checked the option to show it on the
>> context
>> menu and on the bar menu. I viewed through VBScript the type property of
>> its
>> relative control on the context menu and it says it is a commandbutton
>> type.
>> My aim is to add a submenu to my custom action control but since that is
>> a
>> commandbutton control i think i can't add a submenu to it. Am i correct
>> and
>> if not how can i add a submenu to the custom action i added in the
>> Contact
>> form?
>> I know i can do that easily using VBA but i would prefer to use only Form
>> customization and VBScript inside the Form.
>> Thanks a lot for any suggestion
>> Best regards

Home | Search | Terms | Imprint
Newsgroups Reader