Home » Developer & Programmer » Forms » Closing Forms MDI window
Closing Forms MDI window [message #78884] |
Tue, 26 March 2002 16:50  |
fokker
Messages: 18 Registered: March 2002
|
Junior Member |
|
|
Hi. Is there a way to capture the 'X' button of the forms MDI window? I currently can capture the 'X' buttons of each individual form window within the MDI window, but I don't know how to capture the main 'X'. I have a menu item 'Exit All' that will close all open windows, but I wanted the 'X' button to do the same. Any thoughts would be great. Thanks,
|
|
|
|
|
|
Re: Closing Forms MDI window [message #78905 is a reply to message #78884] |
Thu, 28 March 2002 11:02  |
fokker
Messages: 18 Registered: March 2002
|
Junior Member |
|
|
Okay, I can capture the exiting 'X' by using :system.event_window. If the event_window is 'FORMS_MDI_WINDOW', then I know that it was an Application 'X' button as oppose to a form 'X' button. However, when I use the Key-Exit trigger, I can't exit. Its like the normal Key-Exit is being overidden, and all I can do is just display a message box. If I use the Post-Form trigger, then I can't execute any Do_Key functions. Can anyone tell me how to still exit a form when the Key-Exit event trigger is being used? Thanks,
|
|
|
Goto Forum:
Current Time: Sat May 03 20:45:09 CDT 2025
|