Silverfrost Forums

Welcome to our forums

Can not close a created window.

20 Oct 2013 3:55 #13169

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.

20 Oct 2013 8:21 #13171

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.

26 Oct 2013 9:05 #13225

Thank you, I did as you suggested, and now it works very well.

Thank you very much.

Please login to reply.