Queue close

Command group Flag affected Reversible Execute on client Platform(s)
Events NO NO NO All

Syntax

Queue close window-instance-name

Description

This command queues a "close window" event for the specified window instance as if the user had selected the close option (system menu under Windows and Linux, or close box under macOS).

The specified window instance is closed, and an evClose event is produced. If the specified window instance does not exist, the command has no effect. If you omit the window instance name, the top window instance at the time of execution will be closed, and an evClose event is generated.

Example

Open window instance wMyWindow/wInst1
Open window instance wMyWindow/wInst2
Queue close ;; close wInst2, the top instance