David Potashinsky
Guest
|
Hi,
I'm using a Backstage view in Office which has a button that when it is clicked it opens a custom dialog.
If I try to open another document while that dialog is already opened I want to display the default Office message that says: "Word can't do this because a dialogue box is open. Please close the dialog box to continue".
However, if our custom dialog is displayed, Word will not show this message and will simply get stuck until I close the dialog.
Is there an event I should listen to? Can I call Office's built-in error message?
Thanks |
|
Andrei Smolin
Add-in Express team
Posts: 18830
Joined: 2006-05-11
|
Hello David,
A modal dialog opened over some window prevents sending any Windows message to the underlying window. This prevent the underlying window from handling any keyboard and mouse events.
I suppose Word shows this message if you call some function *programmatically* and Word can't perform the action requested because of the dialog window.
Andrei Smolin
Add-in Express Team Leader |
|