Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Closing Quickwin Child Window

csmao
Beginner
686 Views
Dear everybody:

I know how to close a Quickwin child window within my program. But, is there a way to close the window IN RESPONSE TO A USER'S REQUEST. I mean: how to enable the 'closing window' icon on the upper-right corner of the window? Can I do this strictly within Quickwin environment without calling WIN32 API's?

Mao
0 Kudos
2 Replies
anthonyrichards
New Contributor III
686 Views
You must specify exactly what you mean by a 'user request' here. Otherwise mind-reading is called for...
Doyou mean closing thewindow via the keyboard or via a message from another application?
You need some way of communicating the identity of the window to close. Since you are talking QuickWin here, then the child window will have been opened using a codedOPEN(unit=nn..) statement, so you need to execute a callback that executes an equivalent CLOSE(unit=nn) statement. You should be able to identify a window to the application that has opened it by using INQFOCUSQQ(unit) after clicking on the window to give it focus. SO you need a callback routine that is activated by a hot-key combination that then calls INQFOCUSQQ(unit) and which then issues a CLOSE(unit) command if 'unit' is open and has focus.
0 Kudos
david_jones
Beginner
685 Views
This question has been discussed here previously. You might try searching the forum (and the archive one) for "X on title bar".
0 Kudos
Reply