Inspector form layout below subject line in new email on Outlook

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

Inspector form layout below subject line in new email on Outlook
 
Alex Carter




Posts: 40
Joined: 2019-02-21
I am currently using an Inspector form to display an extra field on the new email form in Outlook. I have set the InspectorLayout in the forms collection to be TopSubpane but the extra field shows above The send button/to/cc etc. Is it possible to show this extra field below the subject box somehow?

Thanks in advance,
Alex
Posted 21 Feb, 2019 05:37:03 Top
Andrei Smolin


Add-in Express team


Posts: 17332
Joined: 2006-05-11
Hello Alex,

That isn't supported. The supported layouts are listed at https://www.add-in-express.com/add-in-net/outlook-regions.php.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 21 Feb, 2019 06:12:09 Top
Alex Carter




Posts: 40
Joined: 2019-02-21
Hi Andrei,
Thanks for the quick reply. I didn't think it would be, thought it was worth an ask though!

Cheers,
Alex
Posted 21 Feb, 2019 08:44:12 Top
Andrei Smolin


Add-in Express team


Posts: 17332
Joined: 2006-05-11
No problem.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 21 Feb, 2019 09:48:42 Top
Alex Carter




Posts: 40
Joined: 2019-02-21
Hi Andrei,
Another question on this which is kind of related. I am using Outlook 2016 and when I hit reply to an email the new email is in a docked state inside of outlook rather than opening a new inspector as below:

[img]https://ibb.co/JtKCwgy[/img]

Is it possible to have the form region show at the top of this docked window or this unsupported?
Posted 26 Feb, 2019 10:52:04 Top
Andrei Smolin


Add-in Express team


Posts: 17332
Joined: 2006-05-11
Hello Alex,

This is supported. TopReadingPane. You show the pane when that Explorer fires the InlineResponse event (ADXOlAppEvents.ExplorerInlineResponseEx) and hide the pane when that Explorer fires InlineResponseClose (ADXOlAppEvents.ExplorerInlineResponseCloseEx).

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 27 Feb, 2019 01:42:45 Top
Alex Carter




Posts: 40
Joined: 2019-02-21
OK sounds good, am I hiding the form or the actual pane itself? If it's the pane, how do I actually hide it?

At the moment I am changing the region state but it isn't really hiding the pane as a whole:


    Private Sub AdxOutlookAppEvents_ExplorerInlineResponseEx(sender As Object, itemObject As Object, sourceObject As Object) Handles AdxOutlookAppEvents.ExplorerInlineResponseEx
        Me.AdxOlFormsManager1.Items(0).GetCurrentForm.RegionState = AddinExpress.OL.ADXRegionState.Normal
    End Sub

    Private Sub AdxOutlookAppEvents_ExplorerInlineResponseCloseEx(sender As Object, sourceObject As Object) Handles AdxOutlookAppEvents.ExplorerInlineResponseCloseEx
        Me.AdxOlFormsManager1.Items(0).GetCurrentForm.RegionState = AddinExpress.OL.ADXRegionState.Hidden
    End Sub
Posted 27 Feb, 2019 04:01:46 Top
Andrei Smolin


Add-in Express team


Posts: 17332
Joined: 2006-05-11
Hello Alex,

Please check the example labeled "Controlling the visibility of a custom form" at https://www.add-in-express.com/support/addin-vb-net.php#outlook-forms.

PS. The C# version of that example is called "How to set the visibility of the form in an Outlook advanced form region"; see https://www.add-in-express.com/support/addin-c-sharp.php#form-regions.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 27 Feb, 2019 04:12:04 Top
Alex Carter




Posts: 40
Joined: 2019-02-21
Thanks Andrei,
I will give this a go when I get a chance.

Cheers,
Alex
Posted 28 Feb, 2019 10:57:53 Top