Context Sensitive Inspector Pane (ADX for Outlook)

Add-in Express™ Support Service
That's what is more important than anything else

Context Sensitive Inspector Pane (ADX for Outlook)
 
Stuart Murray




Posts: 26
Joined: 2006-09-14
I need a context sensitive insepctor pane.

Basically I have added a form manager and added in a couple of forms, an explorer form and an inspector form.

I have set the Folder overload for the explorer form and it correctly displays only on the appropriate folder.

I can't find a way to do the same for the inspector form. I'm inspecting different contact folders and need a different form depending on where the inspected item lives.

Any clues?
Posted 14 Sep, 2006 15:40:09 Top
Fedor Shihantsov


Guest


ADXOlFormsManager does not support this future. But you can use the ADXOlFormsManager.ADXNewInspector event to Enable/Disable ADXOlFormsCollectionItem depending on the current folder.

private AddinExpress.OL.ADXOlFormsManager adxOlFormsManager1;
private AddinExpress.OL.ADXOlFormsCollectionItem ContactItem;
...
private void adxOlFormsManager1_ADXNewInspector(object inspectorObj)
{
    /*<pseudocode>
    //Get ActiveExplorer
    //Get ActiveExplorer.CurrentFolder
    //Get FolderName
    adxOlFormsManager1.LockUpdates();
    try
    {
        if (FolderName == SpecificFolderName)
        {
            ContactItem.Enabled = true; 
        }
        else
        {
            ContactItem.Enabled = false; 
        }
    }
    finally
    {
        adxOlFormsManager1.UnlockUpdates();
       
    }
    </pseudocode>*/
}
Posted 20 Sep, 2006 04:18:17 Top
Stuart Murray




Posts: 26
Joined: 2006-09-14
thanks Fedor,

I'll give it a try.
Posted 20 Sep, 2006 05:56:52 Top