Don't show TadxWordTaskPane instance after a new Word window is opened.

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

Don't show TadxWordTaskPane instance after a new Word window is opened.
 
Edwin Y




Posts: 4
Joined: 2010-12-21
Hi,

How to archive this: After a Word window is opened, Show the TadxWordTaskPane instance only if the document is an existing one on the disk, and don't show the pane instance if it's a unsaved Word document.

Note: I can't disable creating the panes in the OnADXBeforeTaskPaneInstanceCre ate event, because in the case of the new document is saved to the disk I need to show the pane instance, so the pane instance has to be created anyway.

Thanks.
Posted 21 Dec, 2010 06:42:18 Top
Andrei Smolin


Add-in Express team


Posts: 18823
Joined: 2006-05-11
Hi Edwin,

You can set self.Visible := false in the ADXBeforeTaskPaneShow event of TadxWordTaskPane.


Andrei Smolin
Add-in Express Team Leader
Posted 21 Dec, 2010 08:04:41 Top
Edwin Y




Posts: 4
Joined: 2010-12-21
Hey Andrei,

Worked great! Thank you!
Posted 21 Dec, 2010 09:20:08 Top