- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
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
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This question has been discussed here previously. You might try searching the forum (and the archive one) for "X on title bar".
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page