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 

An equivalent to %sc

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



Joined: 13 Oct 2014
Posts: 1217
Location: Morrison, CO, USA

PostPosted: Fri Apr 24, 2020 4:15 am    Post subject: An equivalent to %sc Reply with quote

Since %sc works while the window is being constructed, and before it gains control, is there a function that can be run immediately BEFORE control returns to the calling program? This would allow initialization and the propagation of variables onto the window(s).

Kind of like the two variants of %cc.

Discussion? Potential?
Back to top
View user's profile Send private message Visit poster's website
PaulLaidler
Site Admin


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

PostPosted: Fri Apr 24, 2020 8:07 am    Post subject: Reply with quote

The %sc start callback function is called immediately after the window is first painted and before the user gains control. If the call results in changes to the display then the callback function must return 1 (not 2) in order to trigger a refresh of the screen.

I would have thought that this covers all requirements. If not then it would be possible to provide an alternative with a call immediately after the window has been created.

It is worth noting that data can sometimes usefully be created in the middle of a sequence of winio@ continuations. For example, a %gr graphics region can take drawing instructions after the %gr but before the terminating winio@.
Back to top
View user's profile Send private message AIM Address
wahorger



Joined: 13 Oct 2014
Posts: 1217
Location: Morrison, CO, USA

PostPosted: Fri Apr 24, 2020 1:59 pm    Post subject: Reply with quote

Thanks, Paul. I'll do some more experimentation and see if I can duplicate what I was experiencing in a simpler example.
Back to top
View user's profile Send private message Visit poster's website
wahorger



Joined: 13 Oct 2014
Posts: 1217
Location: Morrison, CO, USA

PostPosted: Fri Apr 24, 2020 4:42 pm    Post subject: Reply with quote

Well, I cannot duplicate what I saw a few days ago. I will confess that I have made a number of changes to the init code to remove any timers that might have been there (splash screen specifically), so whatever I have done, it works as it was intended.

Thanks for listening!
Bill
Back to top
View user's profile Send private message Visit poster's website
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