View previous topic :: View next topic |
Author |
Message |
Shahram
Joined: 13 May 2013 Posts: 25
|
Posted: Sun Oct 20, 2013 4:55 pm Post subject: Can not close a created window. |
|
|
would like to close a window created by %ca with %lw , what routine I need to call.
I have tried many unsuccessful things reading from the manual during last year but all failed.
I forgot to say that, I have opened this window in a subroutine call, not in a function. Is this is the reason I can not close this particular window.
additionally, when this comes my main menu items will become inactive, even when it be closed using closed bottom. |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7934 Location: Salford, UK
|
Posted: Sun Oct 20, 2013 9:21 pm Post subject: |
|
|
The control variable used with %lw must be "static" if the window is to be closed from outside the subroutine. For example, it could be declared in a MODULE or in a COMMON BLOCK.
When the window is to be closed, set the control variable to 0 and call window_update@(ctrl) where ctrl is the name of the control variable. |
|
Back to top |
|
|
Shahram
Joined: 13 May 2013 Posts: 25
|
Posted: Sat Oct 26, 2013 10:05 am Post subject: Thank You |
|
|
Thank you, I did as you suggested, and now it works very well.
Thank you very much. |
|
Back to top |
|
|
|