forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Can not close a created window.

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support
View previous topic :: View next topic  
Author Message
Shahram



Joined: 13 May 2013
Posts: 20

PostPosted: Sun Oct 20, 2013 4:55 pm    Post subject: Can not close a created window. Reply with quote

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
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 6159
Location: Salford, UK

PostPosted: Sun Oct 20, 2013 9:21 pm    Post subject: Reply with quote

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
View user's profile Send private message
Shahram



Joined: 13 May 2013
Posts: 20

PostPosted: Sat Oct 26, 2013 10:05 am    Post subject: Thank You Reply with quote

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

Thank you very much.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group