How to hide region pane without affecting other add-ins also using ADX regions

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

How to hide region pane without affecting other add-ins also using ADX regions
 
tadams


Guest


Hi!

We are using the region to dynamically display some content at the top of an email in both explorer and inspector views. If there is no content to display we don't want to show our region / pane at all. e.g. if a user is on an email and the pane is currently showing content, they then select another email with no content to display, we want to hide our region so it doesn't have any space above the email.

I have two compatibility questions around this that hopefully you can help with (since we haven't been able to figure these out yet):

1) If there are other 3rd party add-ins who use add-in express and also show a region / pane in the same location, how can we dynamically hide ours but still allow theirs to show?

2) Can we dynamically change our add-in's region to be top-most or at the back if other 3rd party add-ins are also showing regions? e.g. if we have content to show then be top-most, if we have no content to show then either hide the region or allow the other 3rd party to be top-most.

Many thanks and keep up the great work!

Tom
Posted 14 Sep, 2018 08:50:55 Top
Andrei Smolin


Add-in Express team


Posts: 18821
Joined: 2006-05-11
Hello Tom,

#1. You simply call ADXOlForm.Hide() to hide your form. To show the form, you call ADXOlFromsCollectionItem.ApplyTo(explorerOrInspectorRegion).
#2. An add-in calls ADXOlForm.Activate() to show it form on top of other forms in the region.


Andrei Smolin
Add-in Express Team Leader
Posted 17 Sep, 2018 04:34:39 Top
tadams


Guest


Hi Andrei,

Thanks a lot for this, will give it a try and let you know if it resolves things!

Regards,
Tom
Posted 17 Sep, 2018 10:49:39 Top
Andrei Smolin


Add-in Express team


Posts: 18821
Joined: 2006-05-11
Welcome!


Andrei Smolin
Add-in Express Team Leader
Posted 18 Sep, 2018 01:02:57 Top
tadams


Guest


Looks like this has helped and we can hide/show the pane fine now. There is a scaling issue we are still having but will post in another thread. Thanks again!
Posted 18 Sep, 2018 09:07:48 Top
Andrei Smolin


Add-in Express team


Posts: 18821
Joined: 2006-05-11
Great!


Andrei Smolin
Add-in Express Team Leader
Posted 18 Sep, 2018 10:34:53 Top