This document covers the following topics:
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.
Name/Data Type | Explanation |
---|---|
Response (I4) | Output
Natural error (if applicable). |
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