PxPlus User Forum

Twitter Twitter Twitter

Author Topic: Disable the [X] Exit  (Read 1366 times)

Lawrence_Leavell

  • Silver Member
  • ***
  • Posts: 49
    • View Profile
Disable the [X] Exit
« on: July 30, 2019, 06:11:55 PM »
How is it possible to disable the [X] exit and not display the [X] exit option as well in Windx?

Mike King

  • Diamond Member
  • *****
  • Posts: 3811
  • Mike King
    • View Profile
    • BBSysco Consulting
Re: Disable the [X] Exit
« Reply #1 on: July 30, 2019, 07:04:31 PM »
Assuming you are using Nomads you can uncheck the 'Close Box' attribute on your panels.
If you are manually creating Dialogue or Windows, you can include the OPT="x" (lowercase x).

If using WindX to run text mode applications and referring to the outer 'Container' window, there is no method provided to remove the 'X'.  This 'X' however does generate a -1999 CTL event which is generally mapped to F4.  You can disable this mapping by executing

DefCtl -1999=-1099

This will make hitting the 'X' and invalid keystroke and ring the bell.
If you woulld rather it just be ignored use -1000 instead of -1099
 
Mike King
President - BBSysco Consulting
eMail: mike.king@bbsysco.com