DPI Change & Form Re-sizing in different views

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

DPI Change & Form Re-sizing in different views
 
Alex Carter




Posts: 37
Joined: 2019-02-21
I am on Office 365 ProPlus version 1808 Build 10730.20264.

To recreate the issue:
Ensure Outlook is open on the 150% scaled monitor, hit reply to an email, click discard and then click reply again. When in inline mode you should see the duplicated sections appear. Let me know if that happens for you? below is a quick screen recording:

Video

Password for the link is:
AAEtry900
Posted 18 Nov, 2019 06:47:15 Top
Andrei Smolin


Add-in Express team


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

We don't have a version that old.

Also, it looks like depending on the context, you minimize the form and hide some controls. Can it be that you simply need to hide the form? If you need to do this, set ADXOlForm.Visible=false (or true, depending on the context) in the ADXOlForm.ADXBeforeFormShow event.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 18 Nov, 2019 09:20:02 Top
Alex Carter




Posts: 37
Joined: 2019-02-21
Morning Andrei,
Apologies in the time coming back on this. I have updated to a more recent version now and the issue still occurred.

Anyway, to fix scaling/DPI issues I have moved to using a WPF control hosted inside my ADXForm, this is great as I no longer have to handle change of DPI, it all happens automatically and works much better! Thanks for the suggestion here.

Adjusting of controls based upon theme is a little different as this is all managed via dynamic brushes now opposed to iterating the controls, however it does seem a lot more powerful and & I like it.

I got around the resizing issue by changing the ADXRegionState before and after the height of the form is changed:


    Public Sub ShowFields()
        RegionState = AddinExpress.OL.ADXRegionState.Hidden
        Height = 140
        AutoFiling.ShowFields()
        RegionState = AddinExpress.OL.ADXRegionState.Normal
    End Sub

    Public Sub HideFields()
        RegionState = AddinExpress.OL.ADXRegionState.Hidden
        Height = 26
        AutoFiling.HideFields()
        RegionState = AddinExpress.OL.ADXRegionState.Normal
    End Sub


These seems to stop any ugly parts of the form getting left behind.

Thanks for the help along the way!
Posted 22 Nov, 2019 03:51:49 Top
Andrei Smolin


Add-in Express team


Posts: 16814
Joined: 2006-05-11
Many thanks for posting this!

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 25 Nov, 2019 04:57:35 Top