ADXPowerPointTaskPane width not applied

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

ADXPowerPointTaskPane width not applied
How to set default width when starting PowerPoint 
Vannick Trinquier




Posts: 10
Joined: 2017-06-14
Here is the version that I am using: Add-in Express for Microsoft Office and .NET v8.6.4408

Is it possible to send me some screenshot showing that this is working on your side ? I would like to be sure that there is no misunderstanding.

Thanks a lot
Posted 19 Jun, 2017 15:15:15 Top
Andrei Smolin


Add-in Express team


Posts: 14137
Joined: 2006-05-11
Hello Vannick,

Please check https://www.screencast.com/t/mN2V2HqMam.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 20 Jun, 2017 05:28:16 Top
Vannick Trinquier




Posts: 10
Joined: 2017-06-14
Hi,

Actually I can change the width of the task pane like you are doing in the video.
But I was asking in this topic is something different. I would like to change the width of the task pane programmatically (not manually using the mouse and the splitter).
Indeed, I would like that when the addin is started, the taskpane has a width of 400px by default for example.

How to do that?
Thanks
Posted 20 Jun, 2017 07:54:12 Top
Andrei Smolin


Add-in Express team


Posts: 14137
Joined: 2006-05-11
Hello Vannick,

I see. You need to set the width of the pane in the ADXTaskPaneAfterShow event. Does this work for you?

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 20 Jun, 2017 09:09:54 Top
Vannick Trinquier




Posts: 10
Joined: 2017-06-14
Ok thanks a lot. This is working now :)

I have an other question.
Is it possible that instead to set the width by the number of pixel but to set the width as the percentage of the powerpoint window.

For example, the task pane width should 30% of PowerPoint window?
Thanks for your response
Posted 20 Jun, 2017 10:38:35 Top
Andrei Smolin


Add-in Express team


Posts: 14137
Joined: 2006-05-11
Hello Vannick,

Use ADXPowerPointTaskPane.WindowObj to get the PowerPoint.DocumentWindow object representing the window in which the pane is shown. Get the size info, calculate the required pane size and set it.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 21 Jun, 2017 03:17:46 Top
Vannick Trinquier




Posts: 10
Joined: 2017-06-14
Ok. Thanks a lot !
Posted 22 Jun, 2017 01:57:46 Top
Andrei Smolin


Add-in Express team


Posts: 14137
Joined: 2006-05-11
You are welcome!

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 22 Jun, 2017 02:36:19 Top