two ADX addins installed in Outlook

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

two ADX addins installed in Outlook
 
Jason Coley




Posts: 272
Joined: 2005-05-26
Is it possible to have two right pane ADX addins for say the contact folder?

For some reason my second adx addin will not show the right pane?

If I turn off the first addin (through Outlooks Com addins dialog) the second one works.

Jason
Posted 14 Nov, 2006 01:32:27 Top
Jason Coley




Posts: 272
Joined: 2005-05-26
I think in the documentation it says something about only one pane supported. Is there a way that I can switch one off and the other on from one addin to another?

Jason
Posted 14 Nov, 2006 01:35:04 Top
Jason Coley




Posts: 272
Joined: 2005-05-26
OK, I added an export to each addin and disable the other if it is running, which basically works. But, now I get the horrible flickering when enabling and disabling the forms. Before I was just toggling between 0 and 150 to make it visible and hidden.

Is there a better way to do this? Or am I best to make one dll that has both functionality in it and toggle between having two panels visible on the form?

I guess I also need to know if the new version (which is due later this month), work better in this regard before spend too much time on this problem?

Jason
Posted 14 Nov, 2006 02:00:28 Top
Fedor Shihantsov


Guest


Hi Jason,

Is it possible to have two right pane ADX addins for say the contact folder?


The current version does not support more than one subpane. The next major version will work with several panes. We plan to release it in early December.

Is there a better way to do this? Or am I best to make one dll that has both functionality in it and toggle between having two panels visible on the form?

You can use TabControl on ADXOlForm to select your own UserControl.
Also you can create several AdxOlFormsCollectionItem with a different AdxOlForm. Use the AdxOlFormsManager.ADXBeforeFolderSwitch event to choose which form should be shown using the AdxOlFormsCollectionItem.Enable property.


<PSEUDOCODE>
procedure TAddInModule.adxOlFormsManager1ADXBeforeFolderSwitch(
  ASender: TObject; ExplorerObj: _Explorer;
  SrcItem: TadxOlFormsCollectionItem; SrcFolder: MAPIFolder;
  DstItem: TadxOlFormsCollectionItem; DstFolder: MAPIFolder);
begin
  adxOlFormsManager1.LockUpdates;
  adxOlFormsManager1.Items[0].Enabled := false;
  adxOlFormsManager1.Items[1].Enabled := false;
  adxOlFormsManager1.Items[2].Enabled := false;
  if (condition1) then begin
    adxOlFormsManager1.Items[0].Enabled := true;
  end
  else if (condition2) then begin
    adxOlFormsManager1.Items[1].Enabled := true;
  end
  else if (condition3) then begin
    adxOlFormsManager1.Items[2].Enabled := true;
  end;
  adxOlFormsManager1.UnlockUpdates;
end;
</PSEUDOCODE>


P.S. Note that we take up your forum requests in the order we receive them.
Besides, it may take us some time to investigate your issue. Please be sure we will let you know as soon as the best possible solution is found.
Posted 14 Nov, 2006 04:35:28 Top