![]() |
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. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
Is it possible to access the ActiveInspector at the time of ribbon load. Application.ActiveInspector() return proper value when i use custom form but not working for default contact form.
Actually i want to customize ribbon button depending on a property value in ActiveInspector().CurrentItem. Submitted using http://www.outlookforums.com |
Ads |
#2
|
|||
|
|||
![]()
Customize the ribbon in what way?
The callback for ribbon XML is made only on the first opening of that type of Outlook item. So the first time a contact is opened the ribbon callback is called and you return the XML for a contact item ribbon. What I'd do would be to handle the Inspector.Activate() event. In the first Activate() event I'd make a ribbon.Invalidate() call, where ribbon is an object variable for your IRibbonUI instance. The Invalidate() call will fire any callbacks you have set up in the XML for visible and enabled, among other things. You can use those callbacks to get the ActiveInspector().CurrentItem and read its properties, then decide which ribbon UI you want to show/hide/enable/disable. If you have dynamic controls such as a dynamicMenu you can also populate the control as desired at that point from those callbacks. -- 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 "Deepak N" endeep123[at]gmail[dot]com wrote in message ... Is it possible to access the ActiveInspector at the time of ribbon load. Application.ActiveInspector() return proper value when i use custom form but not working for default contact form. Actually i want to customize ribbon button depending on a property value in ActiveInspector().CurrentItem. Submitted using http://www.outlookforums.com |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Application.ActiveInspector().CurrentItem Returns Wrong(Old) Value | Deepak N | Add-ins for Outlook | 3 | June 8th 09 01:55 PM |
Load request form fails: Could not load some objects because they arenot available on this machine | [email protected] | Outlook - General Queries | 1 | August 5th 08 10:22 PM |
How to check if ActiveInspector is a new eMail | Christian Havel | Add-ins for Outlook | 2 | July 9th 07 08:32 AM |
How to set background image for ActiveInspector.CurrentItem? | Burma Jones | Outlook - Using Forms | 1 | February 20th 06 07:13 AM |
How to set background image for ActiveInspector.CurrentItem? | Burma Jones | Outlook and VBA | 1 | February 20th 06 07:13 AM |