Closing windows

 

When you have finished viewing the contents of windows, you can close them one at a time, or all at once. You can optionally be prompted to save the window's contents.

To close one document window:

· Use the IN_CloseDocumentWindow function.

To close all document windows:

· Use the IN_CloseAllDocumentWindows function.

 

You can also receive advises related to user interface actions:

· Register the NotifyCloseDocwin notification to receive a notification when a user closes a document window.

· Register the QueryCloseDocwin query to receive a query asking if a document window can be closed.

· Register the NotifyCloseAll notification to receive a notification when all document windows are closed. You will also receive a NotifyCloseDocwin notification for each window that closes when a user selects Close All in Imagenation.

See also

Opening documents: basic

Opening documents: alternatives

Quitting Imagenation

Controlling notifications and queries