Close (CanClose) [APS]

Window property of an application shell that determines how the application window is closed.

CanClose=On | Off | Async | AppShell

Value

Description

Default

Undefined. The default will be used.

On

The user can close the application window by clicking the Close button in the title bar or choosing Close from the system menu, or by pressing Alt+F4.

Off

The user can only close the application by pressing Cancel or ^Quit (Gold+Q). The Close button (if visible) is disabled.

Async

The Async Interrupt trigger of the current component is activated when the application is closed.

App Shell

The Async Interrupt trigger of the application shell is activated when the application is closed.

Usage

Dynamic? No
Dependencies: Caption and System Menu must be True.

Description

A Close button is visible only if System Menu is true. If Close is False, the button is disabled.

If you choose Asynch or Application Shell, you need to ensure that the appropriate Async Interrupt trigger contains the code to be performed when the application exits.

Related Topics