DISABLE-GHOST-WINDOWS Action

#### Search Results

Search

# DISABLE-GHOST-WINDOWS Action

This document covers the following topics:

- Description

- Parameters

## Description

Disables the system’s ghost window feature for the application. This prevents application windows from displaying the "Not Responding" message during long operations and improves the user experience by avoiding misleading ghost window behavior when the application is still functioning normally. Use this only when temporary unresponsiveness is expected and safe.

Note
The ghosting feature is disabled for the entire Natural session once the command is executed. It remains disabled until Natural is closed and restarted.

## Parameters

Name/Data Type | Explanation
--- | ---
Response (I4) | Output Natural error (if applicable).

#### Example:

    DEFINE DATA LOCAL
      01 #COUNTER (N9) INIT <1>
      01 #RESPONSE (I4)
    END-DEFINE

    PROCESS GUI ACTION DISABLE-GHOST-WINDOWS GIVING #RESPONSE

    WRITE #RESPONSE

    REPEAT
      ADD 1 TO #COUNTER
      UNTIL #COUNTER > 100000000
    END-REPEAT

    WRITE 'Loop completed.'

    END

### On this page

- Description
- Parameters