Silverfrost Forums

Welcome to our forums

An equivalent to %sc

24 Apr 2020 3:15 #25292

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?

24 Apr 2020 7:07 #25293

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@.

24 Apr 2020 12:59 #25295

Thanks, Paul. I'll do some more experimentation and see if I can duplicate what I was experiencing in a simpler example.

24 Apr 2020 3:42 #25297

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

Please login to reply.