OliverM
Guest
|
With ADX 8.3.4393 some new events were added to the AddinModule component.
- OnTaskPaneAfterCreate
- OnTaskPaneBeforeDestroy
- OnTaskPaneBeforeShow
- OnTaskPaneAfterShow
- OnTaskPaneBeforeCreate
But none of the event fires when a pane is created, destroyed etc. Also the release notes mention a new OnHostApplicationInitialized event, but I can not see this event in the AddinModule.
The ADXForm class now includes ADXContainerItemsChanged event and the ConainerControl property. Can you please give a brief description what they can be used for? |
|
Andrei Smolin
Add-in Express team
Posts: 18829
Joined: 2006-05-11
|
Hello Oliver,
OliverM writes:
But none of the event fires when a pane is created, destroyed etc.
These events are on board since Office 2007. They are invoked if you use Custom Task Panes; see https://www.add-in-express.com/docs/net-office-custom-task-panes.php.
OliverM writes:
Also the release notes mention a new OnHostApplicationInitialized event, but I can not see this event in the AddinModule.
This is a protected method, not event. To use it, you need to override it in the code of your add-in module.
The ConainerControl property allows accessing the control on which the form is hosted. We added the ADXContainerItemsChanged event to handle scenarios in which the list of forms the container hosts is changed. You can find more details about customizing Add-in Express forms in https://www.add-in-express.com/creating-addins-blog/2016/05/31/customize-appearance-excel-task-panes-outlook-regions/.
Andrei Smolin
Add-in Express Team Leader |
|
OliverM
Guest
|
hi Andrei,
Thank you for the clarification on OnHostApplicationInitialized and ContainerControl.
I am using ADX Excel Task Pane in my project and I downloaded https://www.add-in-express.com/docs/net-office-custom-task-panes.php. for comparison. None of the projects receives the events e.g. AddinModule_OnTaskPaneBeforeShow does not fire but ExcelTaskPane_ADXBeforeTaskPaneShow does. |
|
Andrei Smolin
Add-in Express team
Posts: 18829
Joined: 2006-05-11
|
|
OliverM
Guest
|
Hi Andrei,
Thank you very much for the example project. Now I can see why the events did not fire. It is a different type of TaskPane and the user control is manually linked to the AddinModule.Taskpanes collection, no TaskPaneManager neither ADXExcelTaskPane.cs is involved, right?
Can both TaskPane types be used in the same project in a 'mixed' mode? |
|
Andrei Smolin
Add-in Express team
Posts: 18829
Joined: 2006-05-11
|
Correct.
Yes.
Andrei Smolin
Add-in Express Team Leader |
|