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 

Operating on drawing surface from subroutine

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> ClearWin+
View previous topic :: View next topic  
Author Message
Anonymous
Guest





PostPosted: Thu Nov 10, 2005 9:15 pm    Post subject: Operating on drawing surface from subroutine Reply with quote

Hopefully not trying the patience of the FTN95 Community,

One hopefully quick question about updating a %gr drawing surface
using ClearWin+, viz...

So far I have left all my winio commands in the main program,
as relegating graphic updates to subroutines always opened
up a new graphic window on top of all previous ones. I ended
up with a pile of windows instead of changing the *one* I wanted
to update.

Called from [main] everything works for the animations, but the
code is cumbersome, ponderous and unsightly.

Can someone tell me how I can get a subroutine to update a window
graphic started from [main] or another subroutine?

I hope the above is not a bother.

Best,
Ludwig
Back to top
PaulLaidler
Site Admin


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

PostPosted: Fri Nov 11, 2005 1:15 am    Post subject: Operating on drawing surface from subroutine Reply with quote

Ludwig

Are you using %lw to leave the window open? If not then this may be the answer.
An (often better) alternative is to use %sc and to put the drawing into a callback function.

Otherwise, can you post a small program to illustrate what you are doing?
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 -> ClearWin+ 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